From 7fcde37aca1e30af53441c47167b1a3f2ac2c023 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 23 Aug 2010 14:56:37 +0000 Subject: #890794 by Berdir: Fixed Upgrade tests broken on PostgreSQL. --- modules/system/system.install | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/system/system.install') 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'); } } -- cgit v1.2.3