Removed remove alter table from sqlite b/c this is not possible in sqlite.
This commit is contained in:
parent
10bdfcb17f
commit
0c8ba8e9e2
@ -334,7 +334,6 @@ class Doctrine_Export_Sqlite extends Doctrine_Export
|
|||||||
foreach ($changes as $changeName => $change) {
|
foreach ($changes as $changeName => $change) {
|
||||||
switch ($changeName) {
|
switch ($changeName) {
|
||||||
case 'add':
|
case 'add':
|
||||||
case 'remove':
|
|
||||||
case 'change':
|
case 'change':
|
||||||
case 'rename':
|
case 'rename':
|
||||||
case 'name':
|
case 'name':
|
||||||
@ -363,16 +362,6 @@ class Doctrine_Export_Sqlite extends Doctrine_Export
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! empty($changes['remove']) && is_array($changes['remove'])) {
|
|
||||||
foreach ($changes['remove'] as $fieldName => $field) {
|
|
||||||
if ($query) {
|
|
||||||
$query .= ', ';
|
|
||||||
}
|
|
||||||
$fieldName = $this->conn->quoteIdentifier($fieldName);
|
|
||||||
$query .= 'DROP ' . $fieldName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$rename = array();
|
$rename = array();
|
||||||
if ( ! empty($changes['rename']) && is_array($changes['rename'])) {
|
if ( ! empty($changes['rename']) && is_array($changes['rename'])) {
|
||||||
foreach ($changes['rename'] as $fieldName => $field) {
|
foreach ($changes['rename'] as $fieldName => $field) {
|
||||||
|
Loading…
Reference in New Issue
Block a user