From 3201268e30c54c43c316b099d3e27bc47b0dd46c Mon Sep 17 00:00:00 2001 From: Ariga Bot <98804354+ariga-bot@users.noreply.github.com> Date: Thu, 4 Jul 2024 17:04:43 +0300 Subject: [PATCH] Added phone_number field to the users table to store user's phone numbers. (#58) Co-authored-by: GitHub Gen Changes <> --- dirs/ecommerce/migrations/20240704130806.sql | 2 ++ dirs/ecommerce/migrations/atlas.sum | 3 ++- dirs/ecommerce/schema.sql | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 dirs/ecommerce/migrations/20240704130806.sql diff --git a/dirs/ecommerce/migrations/20240704130806.sql b/dirs/ecommerce/migrations/20240704130806.sql new file mode 100644 index 0000000..68122f5 --- /dev/null +++ b/dirs/ecommerce/migrations/20240704130806.sql @@ -0,0 +1,2 @@ +-- Modify "users" table +ALTER TABLE `users` ADD COLUMN `phone_number` varchar(15) NULL; diff --git a/dirs/ecommerce/migrations/atlas.sum b/dirs/ecommerce/migrations/atlas.sum index b93465e..e2db8ec 100644 --- a/dirs/ecommerce/migrations/atlas.sum +++ b/dirs/ecommerce/migrations/atlas.sum @@ -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= @@ -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= diff --git a/dirs/ecommerce/schema.sql b/dirs/ecommerce/schema.sql index 8cab8f6..5c77507 100644 --- a/dirs/ecommerce/schema.sql +++ b/dirs/ecommerce/schema.sql @@ -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,