diff --git a/dirs/ecommerce/migrations/20241128114310.sql b/dirs/ecommerce/migrations/20241128114310.sql new file mode 100644 index 0000000..8d0dece --- /dev/null +++ b/dirs/ecommerce/migrations/20241128114310.sql @@ -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"; diff --git a/dirs/ecommerce/migrations/atlas.sum b/dirs/ecommerce/migrations/atlas.sum index d3a72b4..2e204ff 100644 --- a/dirs/ecommerce/migrations/atlas.sum +++ b/dirs/ecommerce/migrations/atlas.sum @@ -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= @@ -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= diff --git a/dirs/ecommerce/schema.sql b/dirs/ecommerce/schema.sql index 1c25703..64ba3de 100644 --- a/dirs/ecommerce/schema.sql +++ b/dirs/ecommerce/schema.sql @@ -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`),