added NOT NULL to answers contents
This commit is contained in:
@@ -23,8 +23,8 @@ CREATE TABLE Posts
|
|||||||
|
|
||||||
CREATE TABLE Answers (
|
CREATE TABLE Answers (
|
||||||
id bigserial PRIMARY KEY,
|
id bigserial PRIMARY KEY,
|
||||||
parent bigserial REFERENCES Posts,
|
parent bigserial REFERENCES Posts NOT NULL,
|
||||||
child bigserial REFERENCES Posts,
|
child bigserial REFERENCES Posts NOT NULL,
|
||||||
deleted timestamp WITH TIME ZONE default NULL
|
deleted timestamp WITH TIME ZONE default NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user