install/schemas/upgrade/1.1.1-1.1.2-postgresql.sql
changeset 430 ec90736b9cb9
parent 413 6607cd646d6d
child 494 6c78cc456091
equal deleted inserted replaced
426:f5718d7c2a6a 430:ec90736b9cb9
     4 ALTER TABLE {{TABLE_PREFIX}}logs ADD COLUMN log_id SERIAL, ADD PRIMARY KEY ( log_id );
     4 ALTER TABLE {{TABLE_PREFIX}}logs ADD COLUMN log_id SERIAL, ADD PRIMARY KEY ( log_id );
     5 ALTER TABLE {{TABLE_PREFIX}}logs ADD COLUMN is_draft smallint NOT NULL DEFAULT 0;
     5 ALTER TABLE {{TABLE_PREFIX}}logs ADD COLUMN is_draft smallint NOT NULL DEFAULT 0;
     6 
     6 
     7 ALTER TABLE {{TABLE_PREFIX}}users ADD COLUMN user_rank int NOT NULL DEFAULT 1,
     7 ALTER TABLE {{TABLE_PREFIX}}users ADD COLUMN user_rank int NOT NULL DEFAULT 1,
     8                                   ADD COLUMN user_timezone int NOT NULL DEFAULT 0;
     8                                   ADD COLUMN user_timezone int NOT NULL DEFAULT 0;
       
     9 ALTER TABLE {{TABLE_PREFIX}}themes
       
    10   ADD COLUMN group_list text DEFAULT NULL,
       
    11   ADD COLUMN group_policy varchar(5) NOT NULL DEFAULT 'deny',
       
    12   ADD CHECK (group_policy IN ('allow', 'deny'));
     9 
    13 
    10 CREATE TABLE {{TABLE_PREFIX}}ranks(
    14 CREATE TABLE {{TABLE_PREFIX}}ranks(
    11   rank_id SERIAL,
    15   rank_id SERIAL,
    12   rank_title varchar(63) NOT NULL DEFAULT '',
    16   rank_title varchar(63) NOT NULL DEFAULT '',
    13   rank_style varchar(255) NOT NULL DEFAULT '',
    17   rank_style varchar(255) NOT NULL DEFAULT '',