|
|
@ -49,6 +49,7 @@ DO $$ BEGIN
|
|
|
|
END$$;
|
|
|
|
END$$;
|
|
|
|
|
|
|
|
|
|
|
|
-- create tables
|
|
|
|
-- create tables
|
|
|
|
|
|
|
|
DO $$ BEGIN
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS "user_sessions" (
|
|
|
|
CREATE TABLE IF NOT EXISTS "user_sessions" (
|
|
|
|
"sid" varchar NOT NULL,
|
|
|
|
"sid" varchar NOT NULL,
|
|
|
@ -126,3 +127,5 @@ CREATE TABLE IF NOT EXISTS requests (
|
|
|
|
type requesttype DEFAULT 'FRIENDREQUEST',
|
|
|
|
type requesttype DEFAULT 'FRIENDREQUEST',
|
|
|
|
PRIMARY KEY (sender, receiver, type)
|
|
|
|
PRIMARY KEY (sender, receiver, type)
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
END $$;
|
|
|
|