From 26f49d438d36d469a01818f33e36e4325714dc8f Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 28 Mar 2016 17:34:28 -0500 Subject: [PATCH] Remove circular reference within playlists table. --- .../main/sql/migrations/20151209054632-initial-schema-up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/sql/migrations/20151209054632-initial-schema-up.sql b/core/src/main/sql/migrations/20151209054632-initial-schema-up.sql index da3390f..ce6ac57 100644 --- a/core/src/main/sql/migrations/20151209054632-initial-schema-up.sql +++ b/core/src/main/sql/migrations/20151209054632-initial-schema-up.sql @@ -53,7 +53,7 @@ CREATE TABLE playlists ( user_created BOOLEAN NOT NULL DEFAULT FALSE, name VARCHAR NOT NULL, media_file_count INTEGER NOT NULL DEFAULT 0, - copied_from_id INTEGER REFERENCES playlists(id) DEFAULT NULL, + copied_from_id INTEGER DEFAULT NULL, created_at TIMESTAMP NOT NULL DEFAULT NOW(), last_used TIMESTAMP NOT NULL DEFAULT NOW() );