Drop default Null for renew_time in sql
This commit is contained in:
parent
6a033ea948
commit
44742bc5f8
5 changed files with 17 additions and 13 deletions
|
|
@ -2,6 +2,6 @@
|
|||
-- from version 1.32 to 1.33
|
||||
|
||||
BEGIN;
|
||||
ALTER TABLE sessions ADD COLUMN renew_time TIMESTAMPTZ DEFAULT NULL;
|
||||
ALTER TABLE sessions ADD COLUMN renew_time TIMESTAMPTZ;
|
||||
COMMIT;
|
||||
|
||||
|
|
|
|||
|
|
@ -120,7 +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,
|
||||
renew_time TIMESTAMPTZ,
|
||||
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