install/schemas/upgrade/1.1.1-1.1.2-postgresql.sql
changeset 494 6c78cc456091
parent 430 ec90736b9cb9
child 625 0122f538c242
equal deleted inserted replaced
493:d8296f89ebb5 494:6c78cc456091
     2 -- Upgrade schema - Enano 1.1.1 - 1.1.2
     2 -- Upgrade schema - Enano 1.1.1 - 1.1.2
     3 
     3 
     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 @ALTER TABLE {{TABLE_PREFIX}}users ADD COLUMN user_timezone int NOT NULL DEFAULT 0;
       
     9 
     9 ALTER TABLE {{TABLE_PREFIX}}themes
    10 ALTER TABLE {{TABLE_PREFIX}}themes
    10   ADD COLUMN group_list text DEFAULT NULL,
    11   ADD COLUMN group_list text DEFAULT NULL,
    11   ADD COLUMN group_policy varchar(5) NOT NULL DEFAULT 'deny',
    12   ADD COLUMN group_policy varchar(5) NOT NULL DEFAULT 'deny',
    12   ADD CHECK (group_policy IN ('allow', 'deny'));
    13   ADD CHECK (group_policy IN ('allow', 'deny'));
    13 
    14