diff options
Diffstat (limited to 'modules/system')
-rw-r--r-- | modules/system/system.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 061a78478..5291c0d9e 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -3361,10 +3361,10 @@ function system_update_1013() { switch ($GLOBALS['db_type']) { case 'mysql': case 'mysqli': - $ret[] = update_sql('ALTER TABLE {sessions} CHANGE COLUMN sid sid varchar(64)'); + $ret[] = update_sql("ALTER TABLE {sessions} CHANGE COLUMN sid sid varchar(64) NOT NULL default ''"); break; case 'pgsql': - $ret[] = update_sql('ALTER TABLE {sessions} ALTER COLUMN sid TYPE varchar(64)'); + db_change_column($ret, 'sessions', 'sid', 'sid', 'varchar(64)', array('not null' => TRUE, 'default' => "''")); break; } return $ret; |