Added lilypond edition

This commit is contained in:
marc
2025-04-04 15:27:23 +02:00
parent 6962d70468
commit 379a6653ce
30 changed files with 2078 additions and 42 deletions

View File

@@ -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)