diff --git a/dirs/ecommerce/migrations/20240716130659.sql b/dirs/ecommerce/migrations/20240716130659.sql new file mode 100644 index 0000000..acec5cc --- /dev/null +++ b/dirs/ecommerce/migrations/20240716130659.sql @@ -0,0 +1,2 @@ +-- Modify "users" table +ALTER TABLE `users` ADD COLUMN `address` varchar(255) NULL; diff --git a/dirs/ecommerce/migrations/atlas.sum b/dirs/ecommerce/migrations/atlas.sum index dc55b0b..982c79c 100644 --- a/dirs/ecommerce/migrations/atlas.sum +++ b/dirs/ecommerce/migrations/atlas.sum @@ -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= @@ -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= diff --git a/dirs/ecommerce/schema.sql b/dirs/ecommerce/schema.sql index 23eb39b..6e4b4d6 100644 --- a/dirs/ecommerce/schema.sql +++ b/dirs/ecommerce/schema.sql @@ -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;