1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Removed remove alter table from sqlite b/c this is not possible in sqlite.

This commit is contained in:
Jonathan.Wage 2007-09-19 19:34:45 +00:00
parent 10bdfcb17f
commit 0c8ba8e9e2

View File

@ -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) {