diff options
Diffstat (limited to 'database/updates.inc')
-rw-r--r-- | database/updates.inc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc index aa76ce719..497e8d2d1 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -103,7 +103,8 @@ $sql_updates = array( "2005-02-11" => "update_124", "2005-02-23" => "update_125", "2005-03-03" => "update_126", - "2005-03-18" => "update_127" + "2005-03-18" => "update_127", + "2005-03-21" => "update_128" ); function update_32() { @@ -2336,4 +2337,17 @@ function update_sql($sql) { } } +function update_128() { + $ret = array(); + + if ($GLOBALS['db_type'] == 'mysql') { + $ret[] = update_sql('ALTER TABLE {term_node} ADD PRIMARY KEY (tid,nid)'); + } + elseif ($GLOBALS['db_type'] == 'pgsql') { + $ret[] = update_sql('ALTER TABLE {term_node} ADD PRIMARY KEY (tid,nid)'); + } + + return $ret; +} + ?> |