Skip to content

Commit

Permalink
Added phone_number field to the users table to store user's phone num…
Browse files Browse the repository at this point in the history
…bers. (#58)

Co-authored-by: GitHub Gen Changes <>
  • Loading branch information
ariga-bot authored Jul 4, 2024
1 parent e30a43e commit 3201268
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/20240704130806.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "users" table
ALTER TABLE `users` ADD COLUMN `phone_number` varchar(15) NULL;
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:xZtdtKq/qOUsP736kTqqXNLeKisqrMtgFWRGkdc99MI=
h1:5Qcz9fmqnkIhJjDMlVvjZjMATmpGPVJyWvnomXe+g+w=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand All @@ -19,3 +19,4 @@ h1:xZtdtKq/qOUsP736kTqqXNLeKisqrMtgFWRGkdc99MI=
20240625130825.sql h1:qCflAvyD+RV/0AOfiBhqCE+2AXxBPUEse9MpX0GRCDY=
20240627130821.sql h1:vCifBjrlZekBRb6g6nmulLu2AdEzvymJBnxFkgFYFj4=
20240702130812.sql h1:u9VyU0SQLuA1LotWpxsCyvEid5FMnrgatcn/P4S4F88=
20240704130806.sql h1:vUO9cakRAqDU9jNrQgE+qyWhWCkojRoWkjAtk9Z+wgY=
1 change: 1 addition & 0 deletions dirs/ecommerce/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ CREATE TABLE `users` (
`id` int NOT NULL,
`user_name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`phone_number` varchar(15) NULL,
`is_admin` bool NULL DEFAULT 0,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL ON UPDATE CURRENT_TIMESTAMP,
Expand Down

0 comments on commit 3201268

Please sign in to comment.