Browse Source

fix ticket 3429

euromark 13 years ago
parent
commit
41f2d812bb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Cake/Console/Command/Task/FixtureTask.php

+ 2 - 2
lib/Cake/Console/Command/Task/FixtureTask.php

@@ -279,8 +279,8 @@ class FixtureTask extends BakeTask {
  * @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);
 	}
 
 /**