File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ -- Modify "users" table
2+ ALTER TABLE ` users` MODIFY COLUMN ` reward_points` int unsigned NOT NULL DEFAULT 0 COMMENT " The number of reward points the user has accumulated" ;
Original file line number Diff line number Diff line change 1- h1:dzVmHTqt6HMOQTKN9QBCadrrvFaLOYsDwORucWTz0WI =
1+ h1:YodBqt1I5FIBweHFkOJcxmb3H6oTiO+DbYtK3TNJAWA =
2220230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
3320230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
4420230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
@@ -120,3 +120,4 @@ h1:dzVmHTqt6HMOQTKN9QBCadrrvFaLOYsDwORucWTz0WI=
12012020251005131122.sql h1:4NichqlFjq/DCea9zYN/6hr2kNOImPrDGYKfOFQVh6Q=
12112120251009131617.sql h1:Wyu0Lzz5OcwuHF6nazgcEA+bzKtV3rDYVtt130IUhsY=
12212220251012131138.sql h1:EekLeCP8SbeXXAiHv8uLZONf3R26QC4SLDPvUFUhrEU=
123+ 20251014131636.sql h1:H+TdxVhp81gf70E6COjZe2scq0h2kO53k0fQ6v5533k=
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ CREATE TABLE `users` (
1616 ` last_login` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT ' Timestamp of the last login of the user' ,
1717 ` address` varchar (255 ) NOT NULL COMMENT ' Address of the user, now required' ,
1818 ` profile_picture_url` varchar (255 ) NULL COMMENT ' URL to the user profile picture' ,
19- ` reward_points` int NOT NULL DEFAULT 0 COMMENT ' The number of reward points the user has accumulated' ,
19+ ` reward_points` int unsigned NOT NULL DEFAULT 0 COMMENT ' The number of reward points the user has accumulated' ,
2020 ` phone_verified` bool NOT NULL DEFAULT 0 COMMENT ' Flag indicating if the user phone number is verified, defaults to false' ,
2121 ` deleted_at` timestamp NULL COMMENT ' Timestamp for soft deletion of the user record' ,
2222 ` last_order_date` date NULL COMMENT ' Date of the users last order' ,
@@ -211,4 +211,4 @@ BEGIN
211211 IF NEW .total_amount < order_total THEN
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;
214- END;
214+ END;
You can’t perform that action at this time.
0 commit comments