summaryrefslogtreecommitdiffstats
path: root/migrate.module
diff options
context:
space:
mode:
authorMike Ryan2009-08-15 15:45:32 +0000
committerMike Ryan2009-08-15 15:45:32 +0000
commit0f7dbe6c46fe8ffe6092d57680bbad0b509ba65b (patch)
tree68f32b4c54b9c155d6cf19106563f7df5b998a85 /migrate.module
parent2a7e06579b474139be56710948ed541474f66ba1 (diff)
#545290 by mikeryan: Check table existence in hook_schema_alter()
Diffstat (limited to 'migrate.module')
-rwxr-xr-xmigrate.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/migrate.module b/migrate.module
index 2d40c3f..fd6f551 100755
--- a/migrate.module
+++ b/migrate.module
@@ -982,6 +982,8 @@ function migrate_menu() {
* @param $schema
*/
function migrate_schema_alter(&$schema) {
+ // Check for table existence - at install time, hook_schema_alter() may be called
+ // before our install hook.
if (db_table_exists('migrate_content_sets')) {
$result = db_query("SELECT * FROM {migrate_content_sets}");
while ($content_set = db_fetch_object($result)) {