git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

  • Brion Vibber's avatar
    Fix for schema upgrade issue when primary keys change; fixes upgrade direct from 0.8.x · 8454b1fb
    Brion Vibber authored
    Previously we were failing to update the primary key during ensureTable(), which could lead to failures when updating some tables (eg queue_item where we changed keys, and the addition of an autoincrement column failed because it conflicted with the old key).
    Now if the key is different, we remove the old key at the start and add the new key at the end of the ALTER TABLE.
    
    Not tested on PostgreSQL -- someone please check whether the alter table 'DROP CONSTRAINT PRIMARY KEY' bit works or if it needs to pull a special name for the key.
    On MySQL, dropping uses alter table's 'DROP PRIMARY KEY' special case.
    8454b1fb
Name
Last commit
Last update
actions Loading commit data...
avatar Loading commit data...
background Loading commit data...
classes Loading commit data...
db Loading commit data...
doc-src Loading commit data...
extlib Loading commit data...
file Loading commit data...
js Loading commit data...
lib Loading commit data...
local Loading commit data...
locale Loading commit data...
mail-src Loading commit data...
plugins Loading commit data...
scripts Loading commit data...
tests Loading commit data...
theme Loading commit data...
tpl Loading commit data...
.gitignore Loading commit data...
CONFIGURE Loading commit data...
COPYING Loading commit data...
EVENTS.txt Loading commit data...
INSTALL Loading commit data...
Makefile Loading commit data...
PLUGINS.txt Loading commit data...
README Loading commit data...
UPGRADE Loading commit data...
apple-touch-icon.png Loading commit data...
config.php.sample Loading commit data...
favicon.ico Loading commit data...
htaccess.sample Loading commit data...
index.php Loading commit data...
install.php Loading commit data...
lighttpd.conf.example Loading commit data...