From 5167fee215ad674677f70398d5d82bc7a920428c Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: Thu, 1 Oct 2020 09:20:26 +0200 Subject: [PATCH] proton: missing default value for timestamp Related: https://pagure.io/koji/issue/2230 --- docs/schema-upgrade-1.22-1.23.sql | 2 +- docs/schema.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/schema-upgrade-1.22-1.23.sql b/docs/schema-upgrade-1.22-1.23.sql index 841344d0..8dd2ce95 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 3fbcd27c..3870d9ff 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