@@ -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[]=$this->getDropTableSQL($dataTable);
if($diff->newName&&$diff->newName!==$diff->name){
$renamedTable=$diff->getNewName();
$sql[]='ALTER TABLE '.$newTable->getQuotedName($this).' RENAME TO '.$renamedTable->getQuotedName($this);