Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema update #119

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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