Skip to content

Commit

Permalink
Added an 'active' column to the 'users' table to indicate if a user a…
Browse files Browse the repository at this point in the history
…ccount is active or inactive. (#57)

Co-authored-by: GitHub Gen Changes <>
  • Loading branch information
ariga-bot authored Jul 2, 2024
1 parent 74eaf82 commit e30a43e
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/20240702130812.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "users" table
ALTER TABLE `users` ADD COLUMN `active` bool NOT NULL DEFAULT 1;
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:uRz/Eqr5ESmpRvXhJpL3LXxjCu5JNR/n2HJZ1OOyPqM=
h1:xZtdtKq/qOUsP736kTqqXNLeKisqrMtgFWRGkdc99MI=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand All @@ -18,3 +18,4 @@ h1:uRz/Eqr5ESmpRvXhJpL3LXxjCu5JNR/n2HJZ1OOyPqM=
20240623130649.sql h1:/WvBYXfEI0Zmpn5SGd28GGgmdzUaxxy6+PBRGKi5gHU=
20240625130825.sql h1:qCflAvyD+RV/0AOfiBhqCE+2AXxBPUEse9MpX0GRCDY=
20240627130821.sql h1:vCifBjrlZekBRb6g6nmulLu2AdEzvymJBnxFkgFYFj4=
20240702130812.sql h1:u9VyU0SQLuA1LotWpxsCyvEid5FMnrgatcn/P4S4F88=
1 change: 1 addition & 0 deletions dirs/ecommerce/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CREATE TABLE `users` (
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL ON UPDATE CURRENT_TIMESTAMP,
`date_of_birth` date NULL,
`active` bool NOT NULL DEFAULT 1,
PRIMARY KEY (`id`)
) CHARSET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
-- Create "categories" table
Expand Down

0 comments on commit e30a43e

Please sign in to comment.