diff options
Diffstat (limited to 'dichroism/migrations')
3 files changed, 2 insertions, 9 deletions
diff --git a/dichroism/migrations/2020-10-23-010929_products/up.sql b/dichroism/migrations/2020-10-23-010929_products/up.sql index 72a7750..36e3a82 100644 --- a/dichroism/migrations/2020-10-23-010929_products/up.sql +++ b/dichroism/migrations/2020-10-23-010929_products/up.sql @@ -6,8 +6,7 @@ CREATE TABLE "products" ( "name" TEXT NOT NULL, "description" TEXT NOT NULL, "featured" INTEGER NOT NULL, - "category" INTEGER NOT NULL, + "category" TEXT NOT NULL, PRIMARY KEY("id"), - FOREIGN KEY("photo_set") REFERENCES "photo_sets"("id"), - FOREIGN KEY("category") REFERENCES "categories"("id") + FOREIGN KEY("photo_set") REFERENCES "photo_sets"("id") ) diff --git a/dichroism/migrations/2020-11-07-130734_categories/down.sql b/dichroism/migrations/2020-11-07-130734_categories/down.sql deleted file mode 100644 index 68ea5a7..0000000 --- a/dichroism/migrations/2020-11-07-130734_categories/down.sql +++ /dev/null @@ -1 +0,0 @@ -DROP TABLE "categories" diff --git a/dichroism/migrations/2020-11-07-130734_categories/up.sql b/dichroism/migrations/2020-11-07-130734_categories/up.sql deleted file mode 100644 index 1bdd50d..0000000 --- a/dichroism/migrations/2020-11-07-130734_categories/up.sql +++ /dev/null @@ -1,5 +0,0 @@ -CREATE TABLE "categories" ( - "id" INTEGER NOT NULL, - "path" TEXT NOT NULL UNIQUE, - PRIMARY KEY("id") -) |