Commit 0c8ba8e9 authored by Jonathan.Wage's avatar Jonathan.Wage

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

parent 10bdfcb1
...@@ -334,7 +334,6 @@ class Doctrine_Export_Sqlite extends Doctrine_Export ...@@ -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 ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment