From: Steinar H. Gunderson Date: Sat, 19 Feb 2005 19:24:00 +0000 (+0000) Subject: Added a provision in the SQL for abbreviated titles. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=398357c297e5732f6ee2fcc1d4d73574e127f5af Added a provision in the SQL for abbreviated titles. --- diff --git a/sql/ccbs.sql b/sql/ccbs.sql index c3005d1..e9b3d32 100644 --- a/sql/ccbs.sql +++ b/sql/ccbs.sql @@ -24,6 +24,14 @@ CREATE TABLE songs ( UNIQUE ( title ) ); +CREATE TABLE songshorttitles ( + song INTEGER NOT NULL REFERENCES song, + shorttitle VARCHAR NOT NULL, + + PRIMARY KEY ( song, shorttitle ), + UNIQUE ( shorttitle ) +); + CREATE TABLE machinesongs ( song INTEGER NOT NULL REFERENCES songs, machine INTEGER NOT NULL REFERENCES machines,