1. 17 Sep, 2011 13 commits
  2. 16 Sep, 2011 2 commits
  3. 15 Sep, 2011 8 commits
  4. 14 Sep, 2011 10 commits
  5. 12 Sep, 2011 3 commits
  6. 11 Sep, 2011 2 commits
  7. 08 Sep, 2011 2 commits
    • 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
    • Evan Prodromou's avatar
      info on upgrading a public site · f63b53c4
      Evan Prodromou authored
      f63b53c4