fix errors during database migration
This commit is contained in:
parent
c6aa0f9854
commit
001d06f2ff
|
@ -660,13 +660,15 @@ class MDB2_Driver_Manager_sqlite3 extends MDB2_Driver_Manager_Common
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($indexes as $index => $definition) {
|
//these seem to only give errors
|
||||||
$this->createIndex($name_new, $index, $definition);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($constraints as $constraint => $definition) {
|
// foreach ($indexes as $index => $definition) {
|
||||||
$this->createConstraint($name_new, $constraint, $definition);
|
// $this->createIndex($name_new, $index, $definition);
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
// foreach ($constraints as $constraint => $definition) {
|
||||||
|
// $this->createConstraint($name_new, $constraint, $definition);
|
||||||
|
// }
|
||||||
|
|
||||||
//fill the new table with data from the old one
|
//fill the new table with data from the old one
|
||||||
if (!empty($select_fields)) {
|
if (!empty($select_fields)) {
|
||||||
|
@ -691,7 +693,6 @@ class MDB2_Driver_Manager_sqlite3 extends MDB2_Driver_Manager_Common
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
echo "changes $name";
|
|
||||||
|
|
||||||
//remove the old table
|
//remove the old table
|
||||||
$result = $this->dropTable('__'.$name);
|
$result = $this->dropTable('__'.$name);
|
||||||
|
|
Loading…
Reference in New Issue