aboutsummaryrefslogtreecommitdiff
path: root/backend/migrations/2020-11-16-133516_create_products_table
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-12-24 05:21:40 +0000
committerAkshay <[email protected]>2020-12-24 05:21:40 +0000
commit9d2b6ee10ec5359cc91769d430485c8c869ba1a8 (patch)
treeb2d541e575ab6e3f70cb709f156f06afca085881 /backend/migrations/2020-11-16-133516_create_products_table
parent7c65421328552b08e64df25e224fe9d54d363e6e (diff)
monorepo
Diffstat (limited to 'backend/migrations/2020-11-16-133516_create_products_table')
-rw-r--r--backend/migrations/2020-11-16-133516_create_products_table/down.sql3
-rw-r--r--backend/migrations/2020-11-16-133516_create_products_table/up.sql8
2 files changed, 11 insertions, 0 deletions
diff --git a/backend/migrations/2020-11-16-133516_create_products_table/down.sql b/backend/migrations/2020-11-16-133516_create_products_table/down.sql
new file mode 100644
index 0000000..7d99a98
--- /dev/null
+++ b/backend/migrations/2020-11-16-133516_create_products_table/down.sql
@@ -0,0 +1,3 @@
1-- This file should undo anything in `up.sql`
2
3DROP TABLE product;
diff --git a/backend/migrations/2020-11-16-133516_create_products_table/up.sql b/backend/migrations/2020-11-16-133516_create_products_table/up.sql
new file mode 100644
index 0000000..829c5be
--- /dev/null
+++ b/backend/migrations/2020-11-16-133516_create_products_table/up.sql
@@ -0,0 +1,8 @@
1-- Your SQL goes here
2CREATE TABLE product (
3 id INTEGER PRIMARY KEY AUTO_INCREMENT,
4 name VARCHAR(255) NOT NULL,
5 kind VARCHAR(255),
6 price FLOAT NOT NULL,
7 description VARCHAR(255)
8)