From fa149441cbf7ba720b23a63c557682e63be2a651 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Sun, 31 Jan 2016 12:28:22 -0600 Subject: [PATCH] Add mod_count to playlists table. --- .../main/sql/migrations/20151209054632-initial-schema-down.sql | 1 + .../main/sql/migrations/20151209054632-initial-schema-up.sql | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/service/src/main/sql/migrations/20151209054632-initial-schema-down.sql b/service/src/main/sql/migrations/20151209054632-initial-schema-down.sql index dbd911c..168e4b2 100644 --- a/service/src/main/sql/migrations/20151209054632-initial-schema-down.sql +++ b/service/src/main/sql/migrations/20151209054632-initial-schema-down.sql @@ -1,6 +1,7 @@ DROP TABLE artists_albums; DROP TABLE albums_images; DROP TABLE artists_images; +DROP TABLE images; DROP TABLE albums; DROP TABLE artists; DROP TABLE media_files_tags; diff --git a/service/src/main/sql/migrations/20151209054632-initial-schema-up.sql b/service/src/main/sql/migrations/20151209054632-initial-schema-up.sql index 393da47..4ffdc29 100644 --- a/service/src/main/sql/migrations/20151209054632-initial-schema-up.sql +++ b/service/src/main/sql/migrations/20151209054632-initial-schema-up.sql @@ -15,7 +15,8 @@ CREATE TABLE tags ( CREATE TABLE playlists ( id SERIAL PRIMARY KEY, name VARCHAR NOT NULL, - media_file_ids INTEGER[] NOT NULL + media_file_ids INTEGER[] NOT NULL, + mod_count INTEGER NOT NULL DEFAULT 0 ); CREATE TABLE bookmarks (