mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
3007fa55d5
commit
5fadf838c0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user