From 5fadf838c0d009489497717e416d52035ced7475 Mon Sep 17 00:00:00 2001 From: Jeremy Shipman Date: Tue, 21 Aug 2007 03:40:09 +0000 Subject: [PATCH] Missing calls to transInitTable git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@40610 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Database.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/model/Database.php b/core/model/Database.php index 818c3d466..e56af903f 100755 --- a/core/model/Database.php +++ b/core/model/Database.php @@ -161,12 +161,15 @@ abstract class Database extends Object { $this->schemaUpdateTransaction[$table]['newFields'][$field] = $schema; } function transCreateIndex($table, $index, $schema) { + $this->transInitTable($table); $this->schemaUpdateTransaction[$table]['newIndexes'][$index] = $schema; } function transAlterField($table, $field, $schema) { + $this->transInitTable($table); $this->schemaUpdateTransaction[$table]['alteredFields'][$field] = $schema; } function transAlterIndex($table, $index, $schema) { + $this->transInitTable($table); $this->schemaUpdateTransaction[$table]['alteredIndexes'][$index] = $schema; }