mirror of
https://github.com/psforever/PSFPortal.git
synced 2026-03-05 21:40:22 +00:00
Add database migration for session portals
This commit is contained in:
parent
18072ad62f
commit
14fa1e49d4
1 changed files with 7 additions and 0 deletions
7
db/1-add-session-table.sql
Normal file
7
db/1-add-session-table.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
CREATE TABLE "session" (
|
||||
"sid" varchar NOT NULL COLLATE "default",
|
||||
"sess" json NOT NULL,
|
||||
"expire" timestamp(6) NOT NULL
|
||||
)
|
||||
WITH (OIDS=FALSE);
|
||||
ALTER TABLE "session" ADD CONSTRAINT "session_pkey" PRIMARY KEY ("sid") NOT DEFERRABLE INITIALLY IMMEDIATE;
|
||||
Loading…
Add table
Add a link
Reference in a new issue