diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-08-25 00:36:37 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-08-25 00:36:37 +0200 |
commit | cd9e57d8121fcceb2fc434fb48a03c78978c2b10 (patch) | |
tree | 9a8e5ee4dbd720536ae4367fe15c3a727e3d020c /create_rating.sql | |
parent | 06fee2afc750f249b07108179d4b06675be6118b (diff) | |
download | perl-app-clerk-cd9e57d8121fcceb2fc434fb48a03c78978c2b10.tar.gz perl-app-clerk-cd9e57d8121fcceb2fc434fb48a03c78978c2b10.tar.xz |
added create_rating.sql file
Diffstat (limited to 'create_rating.sql')
-rw-r--r-- | create_rating.sql | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/create_rating.sql b/create_rating.sql new file mode 100644 index 0000000..67c00a3 --- /dev/null +++ b/create_rating.sql @@ -0,0 +1,17 @@ +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, + rating smallint not null +); +create index if not exists track_ratings_idx ON tracks (rating); + +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); |