proton: missing default value for timestamp

Related: https://pagure.io/koji/issue/2230
This commit is contained in:
Tomas Kopecek 2020-10-01 09:20:26 +02:00
parent e8119e52be
commit 5167fee215
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ CREATE INDEX task_by_no_parent_state_method ON task(parent, state, method) WHERE
-- Message queue for the protonmsg plugin
CREATE TABLE proton_queue (
id SERIAL PRIMARY KEY,
created_ts TIMESTAMPTZ,
created_ts TIMESTAMPTZ DEFAULT NOW(),
address TEXT NOT NULL,
props JSON NOT NULL,
body JSON NOT NULL

View file

@ -941,7 +941,7 @@ CREATE TABLE win_archives (
-- Message queue for the protonmsg plugin
CREATE TABLE proton_queue (
id SERIAL PRIMARY KEY,
created_ts TIMESTAMPTZ,
created_ts TIMESTAMPTZ DEFAULT NOW(),
address TEXT NOT NULL,
props JSON NOT NULL,
body JSON NOT NULL