Skip to content

Commit

Permalink
Added an 'address' field to the 'users' table to store user addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Gen Changes committed Jul 16, 2024
1 parent d172d03 commit 35c7693
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/20240716130659.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "users" table
ALTER TABLE `users` ADD COLUMN `address` varchar(255) 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:66d9JjXdRay5AHv47FkWERP67UgtpudD5T8AE+rCIjQ=
h1:3Y5UyAO0EWVjofutUTLT+dg6dC3FdbV7YDFnyhBIvck=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand All @@ -22,3 +22,4 @@ h1:66d9JjXdRay5AHv47FkWERP67UgtpudD5T8AE+rCIjQ=
20240704130806.sql h1:vUO9cakRAqDU9jNrQgE+qyWhWCkojRoWkjAtk9Z+wgY=
20240711130912.sql h1:ySpUVLDyz5QCRpeB3kaDVarV0hwqHEmwK9S5BEkG7Zo=
20240714132123.sql h1:lv0PHzxnTJyy62qY4O7uWPZ4nJHzuODG0PklM77dqtg=
20240716130659.sql h1:/Dz+XBDPkPvfnBuS9JbsQ8lZN3GfjWtcn3p1WeDtRvk=
1 change: 1 addition & 0 deletions dirs/ecommerce/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ CREATE TABLE `users` (
`date_of_birth` date NULL,
`active` bool NOT NULL DEFAULT 1,
`last_login` timestamp NULL,
`address` varchar(255) NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `email` (`email`)
) CHARSET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
Expand Down

0 comments on commit 35c7693

Please sign in to comment.