You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
569 B
29 lines
569 B
10 years ago
|
SET SESSION AUTHORIZATION 'postgres';
|
||
|
|
||
|
BEGIN transaction;
|
||
|
|
||
|
DO $$
|
||
|
DECLARE ver TEXT;
|
||
|
BEGIN
|
||
|
|
||
|
UPDATE version set version='0.9.2' where vlock=1 and version='0.9.1';
|
||
|
|
||
|
IF found THEN
|
||
|
RETURN;
|
||
|
END IF;
|
||
|
|
||
|
SELECT version into ver from version
|
||
|
WHERE vlock=1;
|
||
|
|
||
|
RAISE EXCEPTION 'Wrong DB version - expect "0.9.1" - found "%"', ver;
|
||
|
|
||
|
END $$;
|
||
|
|
||
|
ALTER TABLE ONLY usersatts
|
||
|
ADD COLUMN status character varying(256) DEFAULT ''::character varying NOT NULL;
|
||
|
|
||
|
ALTER TABLE ONLY users
|
||
|
ADD COLUMN status character varying(256) DEFAULT ''::character varying NOT NULL;
|
||
|
|
||
|
END transaction;
|