diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-08-26 19:34:11 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-08-26 19:34:11 +0200 |
commit | 7576adb3fe591bd10bc2c366874882df0a573ecb (patch) | |
tree | cddd3b4deb5dcb502073aaf4c3aded4aa32135fc /create_rating.sql | |
parent | d69f44d29ba9c49ed2b4ba1352f8220b72d0edbd (diff) | |
download | perl-app-clerk-7576adb3fe591bd10bc2c366874882df0a573ecb.tar.gz perl-app-clerk-7576adb3fe591bd10bc2c366874882df0a573ecb.tar.xz |
removed uris from ratings
Diffstat (limited to 'create_rating.sql')
-rw-r--r-- | create_rating.sql | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/create_rating.sql b/create_rating.sql index cf59285..470997f 100644 --- a/create_rating.sql +++ b/create_rating.sql @@ -2,18 +2,18 @@ create table if not exists tracks( date varchar(12) not null, artist varchar(255) not null, album varchar(255) not null, - directory varchar(500) not null, + title varchar(255) not null, + trackbumber smallint not null, rating smallint not null ); create index if not exists track_ratings_idx ON tracks (rating); -CREATE UNIQUE INDEX tracks_dir_idx ON tracks (directory); +CREATE UNIQUE INDEX tracks_title_idx ON tracks (title); create table if not exists albums( date varchar(12) not null, artist varchar(255) not null, album varchar(255) not null, - directory varchar(500) not null, rating smallint not null ); create index if not exists album_ratings_idx ON albums (rating); -CREATE UNIQUE INDEX albums_dir_idx ON albums (directory); +CREATE UNIQUE INDEX albums_dir_idx ON albums (album); |