File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ -- Modify "products" table
2+ ALTER TABLE ` products` MODIFY COLUMN ` price` decimal (12 ,4 ) NOT NULL COMMENT " Price of the product" ;
Original file line number Diff line number Diff line change 1- h1:kBWfSSoa+I2fVhYYSjj6j4RNcOw5qQL041hh3YZkjlo =
1+ h1:ttJZGa0MoHKvFY1PqRzXuYIqwTEP39m+WcFY/cddw94 =
2220230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
3320230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
4420230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
@@ -128,3 +128,4 @@ h1:kBWfSSoa+I2fVhYYSjj6j4RNcOw5qQL041hh3YZkjlo=
12812820251030131819.sql h1:lFWnjBrFnMv7M3DG8NTMbJv4wacnOHla4wVdYj/JkLY=
12912920251102131140.sql h1:6m5KVCL6GmycOmkwBCJRcpxm+RSsFPbV4UMMZQrBKrc=
13013020251104132019.sql h1:/+MEE2P3Q6Ll/lxa5YXW6tew/5Pldx1K/j4xFHqlWEs=
131+ 20251106131809.sql h1:JxnMLOGSyzhJEX4bnW4HPpyVDi4MnBWsUbbeLBFiSoc=
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ CREATE TABLE `categories` (
5858CREATE TABLE `products ` (
5959 ` id` int NOT NULL COMMENT ' Unique identifier for each product' ,
6060 ` product_name` varchar (255 ) NOT NULL COMMENT ' Name of the product' ,
61- ` price` decimal (10 , 2 ) NOT NULL COMMENT ' Price of the product' ,
61+ ` price` decimal (12 , 4 ) NOT NULL COMMENT ' Price of the product' ,
6262 ` currency_code` char (3 ) NOT NULL DEFAULT ' USD' COMMENT ' Currency code for the product price' ,
6363 ` category_id` int NULL COMMENT ' Foreign key referencing categories' ,
6464 ` description` text NULL COMMENT ' Description of the product' ,
@@ -212,3 +212,5 @@ BEGIN
212212 SIGNAL SQLSTATE ' 45000' SET MESSAGE_TEXT = ' Order total amount must be greater than or equal to the total price of the order items' ;
213213 END IF;
214214END;
215+
216+
You can’t perform that action at this time.
0 commit comments