Added lilypond edition
This commit is contained in:
@@ -7,6 +7,7 @@ def create_db(con: Connection | None = None):
|
||||
create_links_table(con)
|
||||
create_lyrics_table(con)
|
||||
create_properties_table(con)
|
||||
create_scores_table(con)
|
||||
|
||||
|
||||
def create_temes_table(con: Connection):
|
||||
@@ -66,3 +67,21 @@ def create_properties_table(con: Connection):
|
||||
"""
|
||||
cur = con.cursor()
|
||||
_ = cur.execute(query)
|
||||
|
||||
|
||||
def create_scores_table(con: Connection):
|
||||
query = """
|
||||
CREATE TABLE IF NOT EXISTS tema_scores (
|
||||
id INTEGER PRIMARY KEY,
|
||||
tema_id INTEGER,
|
||||
title TEXT,
|
||||
source TEXT NOT NULL,
|
||||
errors TEXT NOT NULL,
|
||||
img_url TEXT,
|
||||
pdf_url TEXT,
|
||||
hidden BOOLEAN,
|
||||
FOREIGN KEY(tema_id) REFERENCES temes(id) ON DELETE CASCADE
|
||||
)
|
||||
"""
|
||||
cur = con.cursor()
|
||||
_ = cur.execute(query)
|
||||
|
||||
Reference in New Issue
Block a user