From fa3289166b47932958db1b6d5949d6679a683995 Mon Sep 17 00:00:00 2001 From: timoschneider Date: Sat, 20 Apr 2024 12:59:23 +0200 Subject: [PATCH] added NOT NULL to answers contents --- init/00_InitDB.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/00_InitDB.sql b/init/00_InitDB.sql index bf720ff..ec23a24 100644 --- a/init/00_InitDB.sql +++ b/init/00_InitDB.sql @@ -23,8 +23,8 @@ CREATE TABLE Posts CREATE TABLE Answers ( id bigserial PRIMARY KEY, - parent bigserial REFERENCES Posts, - child bigserial REFERENCES Posts, + parent bigserial REFERENCES Posts NOT NULL, + child bigserial REFERENCES Posts NOT NULL, deleted timestamp WITH TIME ZONE default NULL );