Drop default Null for renew_time in sql

This commit is contained in:
Jana Cupova 2023-04-22 14:30:22 +02:00 committed by Tomas Kopecek
parent 6a033ea948
commit 44742bc5f8
5 changed files with 17 additions and 13 deletions

View file

@ -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;

View file

@ -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 (