From 8014def1a8da3397d78d1162f9e1b8c3f22d0322 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 26 Dec 2020 10:51:46 +0530 Subject: add transactions and quantities - backend exposes endpoints to perform transactions - frontend introduces a new page to "checkout" cart --- backend/migrations/2020-12-25-150728_transaction_date/down.sql | 4 ++++ backend/migrations/2020-12-25-150728_transaction_date/up.sql | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 backend/migrations/2020-12-25-150728_transaction_date/down.sql create mode 100644 backend/migrations/2020-12-25-150728_transaction_date/up.sql (limited to 'backend/migrations/2020-12-25-150728_transaction_date') diff --git a/backend/migrations/2020-12-25-150728_transaction_date/down.sql b/backend/migrations/2020-12-25-150728_transaction_date/down.sql new file mode 100644 index 0000000..18fe306 --- /dev/null +++ b/backend/migrations/2020-12-25-150728_transaction_date/down.sql @@ -0,0 +1,4 @@ +-- This file should undo anything in `up.sql` + +alter table transaction +drop column order_date; diff --git a/backend/migrations/2020-12-25-150728_transaction_date/up.sql b/backend/migrations/2020-12-25-150728_transaction_date/up.sql new file mode 100644 index 0000000..76f9820 --- /dev/null +++ b/backend/migrations/2020-12-25-150728_transaction_date/up.sql @@ -0,0 +1,4 @@ +-- Your SQL goes here + +alter table transaction +add order_date date not null default curdate(); -- cgit v1.2.3