@@ -908,9 +913,14 @@ class SqlitePlatform extends AbstractPlatform
...
@@ -908,9 +913,14 @@ class SqlitePlatform extends AbstractPlatform
$sql[]=sprintf('INSERT INTO %s (%s) SELECT %s FROM %s',$newTable->getQuotedName($this),implode(', ',$newColumnNames),implode(', ',$oldColumnNames),$dataTable->getQuotedName($this));
$sql[]=sprintf('INSERT INTO %s (%s) SELECT %s FROM %s',$newTable->getQuotedName($this),implode(', ',$newColumnNames),implode(', ',$oldColumnNames),$dataTable->getQuotedName($this));
$sql[]=$this->getDropTableSQL($dataTable);
$sql[]=$this->getDropTableSQL($dataTable);
if($diff->newName&&$diff->newName!==$diff->name){
$newName=$diff->getNewName();
$renamedTable=$diff->getNewName();
$sql[]='ALTER TABLE '.$newTable->getQuotedName($this).' RENAME TO '.$renamedTable->getQuotedName($this);