Skip to content

Commit

Permalink
Add an 'order_reference' column to the 'orders' table for external or…
Browse files Browse the repository at this point in the history
…der tracking. (#88)

Co-authored-by: GitHub Gen Changes <>
  • Loading branch information
ariga-bot authored Sep 1, 2024
1 parent fafec1d commit 8aac26e
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/20240901130920.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "orders" table
ALTER TABLE `orders` ADD COLUMN `order_reference` varchar(100) NULL;
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:BWyPrPqY16weJP4Ws3vsRMyVZZ55Ob66EqL3TIy6S+0=
h1:aBEg8MJdkSaquBFGMVyT/QIkOt6AnHqP/bgsJWj6lqM=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand Down Expand Up @@ -42,3 +42,4 @@ h1:BWyPrPqY16weJP4Ws3vsRMyVZZ55Ob66EqL3TIy6S+0=
20240825130739.sql h1:8BJJ5h/CeJNW3T0QQWKTUueqBhokdz/BMFISo0vJgPs=
20240827130923.sql h1:twxLs8CDVZtIiez6dyrK1rJ0x0TKWHRwj7Hlf+yUs7Y=
20240829131016.sql h1:0zYZTAkT2bM3KovKz9e3KrmSKjwqM7qbkIHK1Yybh2c=
20240901130920.sql h1:Dq3nUz8IibffiSag7Lw7UZjTM0Dj8EZssyn5mUSqX84=
1 change: 1 addition & 0 deletions dirs/ecommerce/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ CREATE TABLE `orders` (
`shipping_address` varchar(255) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL ON UPDATE CURRENT_TIMESTAMP,
`order_reference` varchar(100) NULL,
PRIMARY KEY (`id`),
INDEX `fulfillment_center_id` (`fulfillment_center_id`),
INDEX `user_id` (`user_id`),
Expand Down

0 comments on commit 8aac26e

Please sign in to comment.