From 4828ee3384a426a466d72955bd4cd0a839e5f0bd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 6 Dec 2006 16:24:12 +0000 Subject: - Patch #98551 by Heine: make Drupal work when MySQL runs in strict mode. --- modules/system/system.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/system.install b/modules/system/system.install index 50ebba38d..a8f7f0aaf 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -561,7 +561,7 @@ function system_install() { message longtext NOT NULL, severity tinyint unsigned NOT NULL default '0', link varchar(255) NOT NULL default '', - location text NOT NULL default '', + location text NOT NULL, referer varchar(128) NOT NULL default '', hostname varchar(128) NOT NULL default '', timestamp int NOT NULL default '0', @@ -3394,7 +3394,7 @@ function system_update_1016() { switch ($GLOBALS['db_type']) { case 'mysql': case 'mysqli': - $ret[] = update_sql("ALTER TABLE {watchdog} CHANGE COLUMN location location text NOT NULL default ''"); + $ret[] = update_sql("ALTER TABLE {watchdog} CHANGE COLUMN location location text NOT NULL"); break; case 'pgsql': db_change_column($ret, 'watchdog', 'location', 'location', 'text', array('not null' => TRUE, 'default' => "''")); -- cgit v1.2.3