Skip to content

Commit

Permalink
Added an 'is_featured' column to the 'orders' table to allow marking …
Browse files Browse the repository at this point in the history
…certain orders as featured for special processing or audit purposes. The default value for this column is set to false.
  • Loading branch information
GitHub Gen Changes committed Nov 28, 2024
1 parent ccd75ed commit a48df9f
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/20241128114310.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "orders" table
ALTER TABLE `orders` ADD COLUMN `is_featured` bool NOT NULL DEFAULT 0 COMMENT "Flag indicating if the order is featured, defaults to false";
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:ehfcUyaATqjxFUOrYNx1/zzbK53gOHEkMwLMrLiAfRQ=
h1:3KMZhZ8WFcPIx6uZN2zxUsE7xfNNroCpbai+mszVAJg=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand Down Expand Up @@ -62,3 +62,4 @@ h1:ehfcUyaATqjxFUOrYNx1/zzbK53gOHEkMwLMrLiAfRQ=
20241114131226.sql h1:kQjVyuZaEewk+qpzGzSpj2Pwm6mJ6XWci4kBCXXdIY0=
20241119131322.sql h1:ih7jcLvWFqJnVYDUkMN8wZiKYkgbp65yCTSrzO6pkgg=
20241126131349.sql h1:7Ft68dDNVtYPdFgxuWUlfN96gM74nqPSHNL1IHitu2I=
20241128114310.sql h1:BEWCkwlqS1vHduvpN0PlbUZq1nwe/6iLCkrKfECzprk=
1 change: 1 addition & 0 deletions dirs/ecommerce/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ CREATE TABLE `orders` (
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Timestamp of when the order was created',
`updated_at` timestamp NULL ON UPDATE CURRENT_TIMESTAMP COMMENT 'Timestamp of the last update to the order record',
`order_reference` varchar(100) NULL COMMENT 'Optional reference number for the order',
`is_featured` bool NOT NULL DEFAULT 0 COMMENT 'Flag indicating if the order is featured, defaults to false',
PRIMARY KEY (`id`),
INDEX `fulfillment_center_id` (`fulfillment_center_id`),
INDEX `user_id` (`user_id`),
Expand Down

0 comments on commit a48df9f

Please sign in to comment.