Skip to content

Commit

Permalink
Added 'description' column to the 'products' table for a more detaile…
Browse files Browse the repository at this point in the history
…d product information.
  • Loading branch information
GitHub Gen Changes committed Jun 27, 2024
1 parent 7d2f393 commit 0346479
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/20240627130821.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Modify "products" table
ALTER TABLE `products` ADD COLUMN `description` text 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:M7s27lN1A3aEIwayLslk9AfZ4+6b35oCNwLeBay2sZw=
h1:uRz/Eqr5ESmpRvXhJpL3LXxjCu5JNR/n2HJZ1OOyPqM=
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
Expand All @@ -17,3 +17,4 @@ h1:M7s27lN1A3aEIwayLslk9AfZ4+6b35oCNwLeBay2sZw=
20240620130747.sql h1:0v/yTN8W9PHjGLN6ZE+T8XywRRUJXwRUt23XWewGyhg=
20240623130649.sql h1:/WvBYXfEI0Zmpn5SGd28GGgmdzUaxxy6+PBRGKi5gHU=
20240625130825.sql h1:qCflAvyD+RV/0AOfiBhqCE+2AXxBPUEse9MpX0GRCDY=
20240627130821.sql h1:vCifBjrlZekBRb6g6nmulLu2AdEzvymJBnxFkgFYFj4=
1 change: 1 addition & 0 deletions dirs/ecommerce/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ CREATE TABLE `products` (
`product_name` varchar(255) NOT NULL,
`price` decimal(10,2) NOT NULL,
`category_id` int NULL,
`description` text NULL,
PRIMARY KEY (`id`),
INDEX `category_id` (`category_id`),
UNIQUE INDEX `product_name` (`product_name`),
Expand Down

0 comments on commit 0346479

Please sign in to comment.