diff --git a/dirs/ecommerce/migrations/20241003131136.sql b/dirs/ecommerce/migrations/20241003131136.sql new file mode 100644 index 0000000..c48191f --- /dev/null +++ b/dirs/ecommerce/migrations/20241003131136.sql @@ -0,0 +1,2 @@ +-- Modify "payment_methods" table +ALTER TABLE `payment_methods` ADD COLUMN `status` varchar(50) NOT NULL DEFAULT "active"; diff --git a/dirs/ecommerce/migrations/atlas.sum b/dirs/ecommerce/migrations/atlas.sum index 539e591..1e7bd05 100644 --- a/dirs/ecommerce/migrations/atlas.sum +++ b/dirs/ecommerce/migrations/atlas.sum @@ -1,4 +1,4 @@ -h1:NuVvsPk9c+8cAQBX578rVPkTgoGkVHlYpMV3LKvhrMg= +h1:TcCgpIPG//LADTJ0m1ZNIembE/HTCiWmdBLVfk5+DBc= 20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo= 20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY= 20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA= @@ -48,3 +48,4 @@ h1:NuVvsPk9c+8cAQBX578rVPkTgoGkVHlYpMV3LKvhrMg= 20240915130904.sql h1:0HwnmWE/zmhRTkKqUi2AL08YpWaQKiv7L+obJEG36jM= 20240924131147.sql h1:Lg4RrdZvpXtOh6SPQ5JW133nruj8C03Ayulv2ip2H2U= 20240929130927.sql h1:xCRxgKSY+Pe05lSJSRmUNw5H3JriC7YaZlBA63ptAHs= +20241003131136.sql h1:aImYeLjbpVst3j7jnT68BQFKbMl7sCsp0T/zkeoL2hc= diff --git a/dirs/ecommerce/schema.sql b/dirs/ecommerce/schema.sql index 1c6a1ba..81e9a9d 100644 --- a/dirs/ecommerce/schema.sql +++ b/dirs/ecommerce/schema.sql @@ -140,6 +140,7 @@ CREATE TABLE `payment_methods` ( `card_number` varchar(20) NOT NULL, `expiration_date` date NOT NULL, `cardholder_name` varchar(255) NOT NULL, +`status` varchar(50) NOT NULL DEFAULT 'active', `updated_at` timestamp NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), INDEX `user_id` (`user_id`),