Skip to content

Commit

Permalink
Added 'status' column to the 'orders' table to track the status of th…
Browse files Browse the repository at this point in the history
…e orders. (#54)

Co-authored-by: GitHub Gen Changes <>
  • Loading branch information
ariga-bot authored Jun 23, 2024
1 parent 55c649d commit a4dfda3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dirs/ecommerce/migrations/20240623130649.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "orders" table
ALTER TABLE `orders` ADD COLUMN `status` varchar(50) NOT NULL DEFAULT "PENDING";
3 changes: 2 additions & 1 deletion dirs/ecommerce/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:WYJgMe6FV2mNO59b1qqxHBhwzPexSnZnEkduM1CflDM=
h1:K6mQcuwLS6LcBc8OjqXXpiLfunU8bDdMmD2lWlPgoU8=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand All @@ -15,3 +15,4 @@ h1:WYJgMe6FV2mNO59b1qqxHBhwzPexSnZnEkduM1CflDM=
20240617144354.sql h1:mGm4AgdRP4D1QN/FUNB71vqwLi/faoukUxc6OQVppVY=
20240619073333.sql h1:QJKiWNUwcmy8hbt6YiiVWew5AgibFgtBHBKe73NXW6s=
20240620130747.sql h1:0v/yTN8W9PHjGLN6ZE+T8XywRRUJXwRUt23XWewGyhg=
20240623130649.sql h1:/WvBYXfEI0Zmpn5SGd28GGgmdzUaxxy6+PBRGKi5gHU=
1 change: 1 addition & 0 deletions dirs/ecommerce/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ CREATE TABLE `orders` (
`fulfillment_center_id` int NOT NULL,
`total_amount` decimal(10,2) NOT NULL,
`comment` varchar(100) NULL,
`status` varchar(50) NOT NULL DEFAULT 'PENDING',
PRIMARY KEY (`id`),
INDEX `fulfillment_center_id` (`fulfillment_center_id`),
INDEX `user_id` (`user_id`),
Expand Down

0 comments on commit a4dfda3

Please sign in to comment.