install/schemas/upgrade/1.1.3-1.1.4-mysql.sql
changeset 1259 49db7495f6b8
parent 1258 d972b1276d95
child 1260 cd72bcd83401
equal deleted inserted replaced
1258:d972b1276d95 1259:49db7495f6b8
     1 -- This is really honestly a better way to handle plugins.
       
     2 
       
     3 CREATE TABLE {{TABLE_PREFIX}}plugins (
       
     4   plugin_id int(12) NOT NULL auto_increment,
       
     5   plugin_filename varchar(63),
       
     6   plugin_flags int(12),
       
     7   plugin_version varchar(16),
       
     8   PRIMARY KEY ( plugin_id )
       
     9 ) ENGINE `MyISAM` CHARACTER SET `utf8` COLLATE `utf8_bin`;
       
    10 
       
    11 ALTER TABLE {{TABLE_PREFIX}}search_index ADD COLUMN word_lcase varchar(64) NOT NULL;
       
    12 
       
    13 -- User title
       
    14 ALTER TABLE {{TABLE_PREFIX}}users ADD COLUMN user_title varchar(64) DEFAULT NULL;
       
    15 ALTER TABLE {{TABLE_PREFIX}}users MODIFY COLUMN user_rank int(12) unsigned DEFAULT NULL;
       
    16 ALTER TABLE {{TABLE_PREFIX}}users ADD COLUMN user_group mediumint(5) NOT NULL DEFAULT 1;
       
    17 UPDATE {{TABLE_PREFIX}}users SET user_rank = NULL;
       
    18 
       
    19 -- The "guest" rank
       
    20 -- No frontend to this yet so ranks should not have been created.
       
    21 DELETE FROM {{TABLE_PREFIX}}ranks WHERE rank_id = 4;
       
    22 INSERT INTO {{TABLE_PREFIX}}ranks(rank_id, rank_title, rank_style) VALUES
       
    23   (4, 'user_rank_guest', '');
       
    24   
       
    25 -- Other rank-related columns
       
    26 ALTER TABLE {{TABLE_PREFIX}}groups ADD COLUMN group_rank int(12) unsigned DEFAULT NULL;
       
    27 
       
    28 -- Disable JS effects column
       
    29 ALTER TABLE {{TABLE_PREFIX}}users_extra ADD COLUMN disable_js_fx tinyint(1) NOT NULL DEFAULT 0;
       
    30 
       
    31 -- Add "grv" avatar type
       
    32 ALTER TABLE {{TABLE_PREFIX}}users MODIFY COLUMN avatar_type ENUM('png', 'gif', 'jpg', 'grv');