Automatically delete members when families are deleted
This commit is contained in:
@ -46,8 +46,8 @@ CREATE TABLE members (
|
||||
sex VARCHAR(1) NULL,
|
||||
time_create BIGINT NOT NULL,
|
||||
time_update BIGINT NOT NULL,
|
||||
mother integer NULL REFERENCES members,
|
||||
father integer NULL REFERENCES members,
|
||||
mother integer NULL REFERENCES members ON DELETE SET NULL,
|
||||
father integer NULL REFERENCES members ON DELETE SET NULL,
|
||||
birth_year smallint NULL,
|
||||
birth_month smallint NULL,
|
||||
birth_day smallint NULL,
|
||||
|
Reference in New Issue
Block a user