Skip to content

Commit

Permalink
Title and artist are primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
patkub committed Nov 2, 2024
1 parent a885dfb commit 709fdf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database_songs/SongDatabaseHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ def setup_song_database(self):
cur = con.cursor()
cur.execute(
"""CREATE TABLE IF NOT EXISTS songs (
id INTEGER PRIMARY KEY,
full_title TEXT,
artist TEXT,
url TEXT,
original_lyrics TEXT,
english_lyrics TEXT
english_lyrics TEXT,
PRIMARY KEY(full_title, artist)
);"""
)
con.commit()
Expand Down

0 comments on commit 709fdf3

Please sign in to comment.