diff options
Diffstat (limited to 'database')
-rw-r--r-- | database/updates.inc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/database/updates.inc b/database/updates.inc index e1e33734e..c969a51c9 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -2407,6 +2407,24 @@ function update_132() { return $ret; } +function update_130() { + $ret = array(); + + if ($GLOBALS['db_type'] == 'mysql') { + $ret[] = update_sql("ALTER TABLE {locales_source} CHANGE location location varchar(255) NOT NULL default ''"); + } + elseif ($GLOBALS['db_type'] == 'pgsql') { + $ret[] = update_sql("ALTER TABLE {locales_source} RENAME location TO location_old"); + $ret[] = update_sql("ALTER TABLE {locales_source} ADD location varchar(255)"); + $ret[] = update_sql("ALTER TABLE {locales_source} ALTER location SET NOT NULL"); + $ret[] = update_sql("ALTER TABLE {locales_source} ALTER location SET DEFAULT ''"); + $ret[] = update_sql("UPDATE {locales_source} SET location = location_old"); + $ret[] = update_sql("ALTER TABLE {locales_source} DROP location_old"); + } + + return $ret; +} + function update_133() { $ret[] = update_sql("CREATE TABLE {contact} ( subject varchar(255) NOT NULL default '', |