Escollir partitura del tema en un set
This commit is contained in:
@@ -26,8 +26,10 @@ def create_playlist_entries_table(con: Connection):
|
||||
playlist_id INTEGER NOT NULL,
|
||||
set_id INTEGER NOT NULL,
|
||||
tema_id INTEGER,
|
||||
score_id INTEGER,
|
||||
FOREIGN KEY (playlist_id) REFERENCES playlists(id) ON DELETE CASCADE,
|
||||
FOREIGN KEY (tema_id) REFERENCES temes(id) ON DELETE CASCADE
|
||||
FOREIGN KEY (tema_id) REFERENCES temes(id) ON DELETE CASCADE,
|
||||
FOREIGN KEY (score_id) REFERENCES tema_scores(id) ON DELETE SET NULL
|
||||
)
|
||||
"""
|
||||
cur = con.cursor()
|
||||
|
||||
Reference in New Issue
Block a user