Add renew_ts column and check with renew_ts
This commit is contained in:
parent
ce0ce20e3a
commit
6a033ea948
3 changed files with 17 additions and 4 deletions
|
|
@ -120,6 +120,7 @@ CREATE TABLE sessions (
|
|||
update_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
exclusive BOOLEAN CHECK (exclusive),
|
||||
closed BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
renew_time TIMESTAMPTZ DEFAULT NULL,
|
||||
CONSTRAINT no_exclusive_subsessions CHECK (
|
||||
master IS NULL OR "exclusive" IS NULL),
|
||||
CONSTRAINT no_closed_exclusive CHECK (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue