Missing calls to transInitTable

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40610 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Jeremy Shipman 2007-08-21 03:40:09 +00:00
parent 3007fa55d5
commit 5fadf838c0

View File

@ -161,12 +161,15 @@ abstract class Database extends Object {
$this->schemaUpdateTransaction[$table]['newFields'][$field] = $schema; $this->schemaUpdateTransaction[$table]['newFields'][$field] = $schema;
} }
function transCreateIndex($table, $index, $schema) { function transCreateIndex($table, $index, $schema) {
$this->transInitTable($table);
$this->schemaUpdateTransaction[$table]['newIndexes'][$index] = $schema; $this->schemaUpdateTransaction[$table]['newIndexes'][$index] = $schema;
} }
function transAlterField($table, $field, $schema) { function transAlterField($table, $field, $schema) {
$this->transInitTable($table);
$this->schemaUpdateTransaction[$table]['alteredFields'][$field] = $schema; $this->schemaUpdateTransaction[$table]['alteredFields'][$field] = $schema;
} }
function transAlterIndex($table, $index, $schema) { function transAlterIndex($table, $index, $schema) {
$this->transInitTable($table);
$this->schemaUpdateTransaction[$table]['alteredIndexes'][$index] = $schema; $this->schemaUpdateTransaction[$table]['alteredIndexes'][$index] = $schema;
} }