From 5167fee215ad674677f70398d5d82bc7a920428c Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Oct 01 2020 07:21:51 +0000 Subject: proton: missing default value for timestamp Related: https://pagure.io/koji/issue/2230 --- diff --git a/docs/schema-upgrade-1.22-1.23.sql b/docs/schema-upgrade-1.22-1.23.sql index 841344d..8dd2ce9 100644 --- a/docs/schema-upgrade-1.22-1.23.sql +++ b/docs/schema-upgrade-1.22-1.23.sql @@ -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 diff --git a/docs/schema.sql b/docs/schema.sql index 3fbcd27..3870d9f 100644 --- a/docs/schema.sql +++ b/docs/schema.sql @@ -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