Permalink
Browse files

fix ticket 3429

  • Loading branch information...
1 parent 9bcc05b commit 41f2d812bbaf77d6cb4f5402c01f25fc245bf4eb @dereuromark dereuromark committed Dec 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Console/Command/Task/FixtureTask.php
@@ -279,8 +279,8 @@ public function getPath() {
* @return string fields definitions
*/
protected function _generateSchema($tableInfo) {
- $schema = $this->_Schema->generateTable('f', $tableInfo);
- return substr($schema, 13, -2);
+ $schema = trim($this->_Schema->generateTable('f', $tableInfo), "\n");
+ return substr($schema, 13, -1);
}
/**

0 comments on commit 41f2d81

Please sign in to comment.