mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Don't delete works and recordings when updating persons
This commit is contained in:
parent
449b6f47b8
commit
3aceac3d34
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ CREATE TABLE instruments (
|
|||
|
||||
CREATE TABLE works (
|
||||
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
|
||||
);
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ CREATE TABLE ensembles (
|
|||
|
||||
CREATE TABLE recordings (
|
||||
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
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue