From 68ae16173f1ebc12c4139fd5aad757da91966f68 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 9 Sep 2023 22:52:50 +0200 Subject: [PATCH] Fix missing NOT NULL --- init.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.sql b/init.sql index 033f6a3..24b87ce 100644 --- a/init.sql +++ b/init.sql @@ -1,7 +1,7 @@ CREATE TABLE lnauth( k1 VARCHAR(64) NOT NULL PRIMARY KEY, lnurl TEXT NOT NULL, - created TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, + created TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, session_id VARCHAR(48) NOT NULL DEFAULT encode(gen_random_uuid()::text::bytea, 'base64') ); CREATE TABLE sessions(