summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-12-06 16:24:12 +0000
committerDries Buytaert <dries@buytaert.net>2006-12-06 16:24:12 +0000
commit4828ee3384a426a466d72955bd4cd0a839e5f0bd (patch)
tree6a76cbd61702af8832ab827f5fcf998151e6a62e /modules
parent5724b2e42e0f9b17c9d0210402692c18e01950ee (diff)
downloadbrdo-4828ee3384a426a466d72955bd4cd0a839e5f0bd.tar.gz
brdo-4828ee3384a426a466d72955bd4cd0a839e5f0bd.tar.bz2
- Patch #98551 by Heine: make Drupal work when MySQL runs in strict mode.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.install4
1 files 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' => "''"));