Skip to content

Commit

Permalink
Added a column to the table to track the state of the payment method …
Browse files Browse the repository at this point in the history
…(e.g., active, inactive, expired).
  • Loading branch information
GitHub Gen Changes committed Oct 3, 2024
1 parent 647e101 commit 5dfce8d
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/20241003131136.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "payment_methods" table
ALTER TABLE `payment_methods` ADD COLUMN `status` varchar(50) NOT NULL DEFAULT "active";
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:NuVvsPk9c+8cAQBX578rVPkTgoGkVHlYpMV3LKvhrMg=
h1:TcCgpIPG//LADTJ0m1ZNIembE/HTCiWmdBLVfk5+DBc=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand Down Expand Up @@ -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=
1 change: 1 addition & 0 deletions dirs/ecommerce/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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`),
Expand Down

0 comments on commit 5dfce8d

Please sign in to comment.