summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 67ef33777..64b319bc6 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2043,12 +2043,12 @@ function system_update_7016() {
$datatype = 'bigint';
break;
}
- db_query('ALTER TABLE ' . $row->table . ' ALTER COLUMN ' . $row->field . ' TYPE ' . $datatype);
- db_query('ALTER TABLE ' . $row->table . ' ADD CHECK (' . $row->field . ' >= 0)');
+ db_query('ALTER TABLE ' . $row->table . ' ALTER COLUMN "' . $row->field . '" TYPE ' . $datatype);
+ db_query('ALTER TABLE ' . $row->table . ' ADD CHECK ("' . $row->field . '" >= 0)');
}
- db_query('DROP DOMAIN smallint_unsigned');
- db_query('DROP DOMAIN int_unsigned');
- db_query('DROP DOMAIN bigint_unsigned');
+ db_query('DROP DOMAIN IF EXISTS smallint_unsigned');
+ db_query('DROP DOMAIN IF EXISTS int_unsigned');
+ db_query('DROP DOMAIN IF EXISTS bigint_unsigned');
}
}