Don't delete works and recordings when updating persons

This commit is contained in:
Elias Projahn 2020-09-29 00:10:29 +02:00
parent 449b6f47b8
commit 3aceac3d34

View file

@ -11,7 +11,7 @@ CREATE TABLE instruments (
CREATE TABLE works ( CREATE TABLE works (
id BIGINT NOT NULL PRIMARY KEY, id BIGINT NOT NULL PRIMARY KEY,
composer BIGINT NOT NULL REFERENCES persons(id) ON DELETE CASCADE, composer BIGINT NOT NULL REFERENCES persons(id),
title TEXT NOT NULL title TEXT NOT NULL
); );
@ -49,7 +49,7 @@ CREATE TABLE ensembles (
CREATE TABLE recordings ( CREATE TABLE recordings (
id BIGINT NOT NULL PRIMARY KEY, id BIGINT NOT NULL PRIMARY KEY,
work BIGINT NOT NULL REFERENCES works(id) ON DELETE CASCADE, work BIGINT NOT NULL REFERENCES works(id),
comment TEXT NOT NULL comment TEXT NOT NULL
); );