install/schemas/upgrade/1.1.5-1.1.6-mysql.sql
author Dan
Thu, 16 Apr 2009 00:53:05 -0400
changeset 926 f0cbbd06081e
parent 831 45e887f23282
child 927 e964577b5fa9
permissions -rw-r--r--
Added some more indices to speed some stuff up (MySQL only)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
831
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
     1
ALTER TABLE {{TABLE_PREFIX}}users ADD COLUMN password_salt varchar(40) NOT NULL DEFAULT '';
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
     2
ALTER TABLE {{TABLE_PREFIX}}pages ADD COLUMN page_format varchar(16) NOT NULL DEFAULT 'wikitext';
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
     3
ALTER TABLE {{TABLE_PREFIX}}logs ADD COLUMN page_format varchar(16) NOT NULL DEFAULT 'wikitext';
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
     4
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
     5
-- Make page_id and namespace column sizes consistent (former bug)
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
     6
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
     7
ALTER TABLE {{TABLE_PREFIX}}comments MODIFY COLUMN page_id varchar(512) NOT NULL,
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
     8
  MODIFY COLUMN namespace varchar(16) NOT NULL;
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
     9
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    10
ALTER TABLE {{TABLE_PREFIX}}logs MODIFY COLUMN page_id varchar(512) NOT NULL,
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    11
  MODIFY COLUMN namespace varchar(16) NOT NULL;
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    12
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    13
ALTER TABLE {{TABLE_PREFIX}}page_text MODIFY COLUMN page_id varchar(512) NOT NULL;
801
eb8b23f11744 Two big commits in one day I know, but redid password storage to use HMAC-SHA1. Consolidated much AES processing to three core methods in session that should handle everything automagically. Installation works; upgrades should. Rebranded as 1.1.6.
Dan
parents:
diff changeset
    14
831
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    15
ALTER TABLE {{TABLE_PREFIX}}pages MODIFY COLUMN urlname varchar(512) NOT NULL;
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    16
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    17
ALTER TABLE {{TABLE_PREFIX}}hits MODIFY COLUMN page_id varchar(512) NOT NULL,
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    18
  MODIFY COLUMN namespace varchar(16) NOT NULL;
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    19
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    20
ALTER TABLE {{TABLE_PREFIX}}acl MODIFY COLUMN page_id varchar(512),
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    21
  MODIFY COLUMN namespace varchar(16);
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    22
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    23
ALTER TABLE {{TABLE_PREFIX}}page_group_members MODIFY COLUMN page_id varchar(512) NOT NULL,
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    24
  MODIFY COLUMN namespace varchar(16) NOT NULL;
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    25
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    26
ALTER TABLE {{TABLE_PREFIX}}tags MODIFY COLUMN page_id varchar(512) NOT NULL,
45e887f23282 Made all page_id and namespace columns consistent
Dan
parents: 801
diff changeset
    27
  MODIFY COLUMN namespace varchar(16) NOT NULL;