summaryrefslogtreecommitdiff
path: root/dichroism/migrations/2020-10-23-010929_products
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-11-07 08:15:37 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-11-07 08:15:37 -0500
commit2c408648c70614a88c0412faf6d3a00d147379a2 (patch)
tree6f8c84d0485917cf16b7f0420a2b74961177cc26 /dichroism/migrations/2020-10-23-010929_products
parent01de71698b91bc61e61d076f9c25d1cabb039b18 (diff)
downloadtheglassyladies-2c408648c70614a88c0412faf6d3a00d147379a2.tar.xz
theglassyladies-2c408648c70614a88c0412faf6d3a00d147379a2.zip
Added category to products.
Diffstat (limited to 'dichroism/migrations/2020-10-23-010929_products')
-rw-r--r--dichroism/migrations/2020-10-23-010929_products/up.sql4
1 files changed, 3 insertions, 1 deletions
diff --git a/dichroism/migrations/2020-10-23-010929_products/up.sql b/dichroism/migrations/2020-10-23-010929_products/up.sql
index 9e9c696..72a7750 100644
--- a/dichroism/migrations/2020-10-23-010929_products/up.sql
+++ b/dichroism/migrations/2020-10-23-010929_products/up.sql
@@ -6,6 +6,8 @@ CREATE TABLE "products" (
"name" TEXT NOT NULL,
"description" TEXT NOT NULL,
"featured" INTEGER NOT NULL,
+ "category" INTEGER NOT NULL,
PRIMARY KEY("id"),
- FOREIGN KEY("photo_set") REFERENCES "photo_sets"("id")
+ FOREIGN KEY("photo_set") REFERENCES "photo_sets"("id"),
+ FOREIGN KEY("category") REFERENCES "categories"("id")
)