summaryrefslogtreecommitdiff
path: root/dichroism/migrations/2020-11-07-130734_categories
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-11-07-130734_categories
parent01de71698b91bc61e61d076f9c25d1cabb039b18 (diff)
downloadtheglassyladies-2c408648c70614a88c0412faf6d3a00d147379a2.tar.xz
theglassyladies-2c408648c70614a88c0412faf6d3a00d147379a2.zip
Added category to products.
Diffstat (limited to 'dichroism/migrations/2020-11-07-130734_categories')
-rw-r--r--dichroism/migrations/2020-11-07-130734_categories/down.sql1
-rw-r--r--dichroism/migrations/2020-11-07-130734_categories/up.sql5
2 files changed, 6 insertions, 0 deletions
diff --git a/dichroism/migrations/2020-11-07-130734_categories/down.sql b/dichroism/migrations/2020-11-07-130734_categories/down.sql
new file mode 100644
index 0000000..68ea5a7
--- /dev/null
+++ b/dichroism/migrations/2020-11-07-130734_categories/down.sql
@@ -0,0 +1 @@
+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
new file mode 100644
index 0000000..1bdd50d
--- /dev/null
+++ b/dichroism/migrations/2020-11-07-130734_categories/up.sql
@@ -0,0 +1,5 @@
+CREATE TABLE "categories" (
+ "id" INTEGER NOT NULL,
+ "path" TEXT NOT NULL UNIQUE,
+ PRIMARY KEY("id")
+)