install/schemas/upgrade/1.1.3-1.1.4-postgresql.sql
changeset 621 68f8a9cc0a18
parent 555 ac4c6a7f01d8
child 1151 8f0cbce6d5f3
equal deleted inserted replaced
620:58852672ff12 621:68f8a9cc0a18
    38 ALTER TABLE {{TABLE_PREFIX}}groups ADD COLUMN group_rank int DEFAULT NULL;
    38 ALTER TABLE {{TABLE_PREFIX}}groups ADD COLUMN group_rank int DEFAULT NULL;
    39 
    39 
    40 -- Disable JS effects column
    40 -- Disable JS effects column
    41 ALTER TABLE {{TABLE_PREFIX}}users_extra ADD COLUMN disable_js_fx smallint NOT NULL DEFAULT 0;
    41 ALTER TABLE {{TABLE_PREFIX}}users_extra ADD COLUMN disable_js_fx smallint NOT NULL DEFAULT 0;
    42 
    42 
       
    43 -- Add "grv" avatar type
       
    44 ALTER TABLE {{TABLE_PREFIX}}users DROP CONSTRAINT {{TABLE_PREFIX}}users_avatar_type_check;
       
    45 ALTER TABLE {{TABLE_PREFIX}}users ADD CONSTRAINT {{TABLE_PREFIX}}users_avatar_type_check CHECK ( avatar_type IN ( 'png', 'gif', 'jpg', 'grv' ) );