File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change
1
+ -- Modify "categories" table
2
+ ALTER TABLE ` categories` ADD COLUMN ` category_image_url` varchar (255 ) NULL COMMENT " URL to an image representing the category" AFTER ` category_code` ;
Original file line number Diff line number Diff line change 1
- h1:qGuAzfM1J8DvvstrlaL55EzVOs1eJOhkSxMa1/9wUmU =
1
+ h1:Sr++F45oHKyvCJNOCoTc2TNtMLYiVjO69dj6eCeiI6g =
2
2
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
3
3
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
4
4
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
@@ -114,3 +114,4 @@ h1:qGuAzfM1J8DvvstrlaL55EzVOs1eJOhkSxMa1/9wUmU=
114
114
20250710132012.sql h1:a9FYtoRpMF+PR5DAaB3tTqWYxSa2rPM854hykKgipdY=
115
115
20250715132055.sql h1:D6nLJbfZaJTuqhhENlgoF6LO8ouX6yqWAtq74Zch2Ks=
116
116
20250724132033.sql h1:TngcAL8LenOVUNm6zri0U3f33K8mHNHq5lO7vUtmIrA=
117
+ 20250731132135.sql h1:cSy+4lVYqqbIXlorpnJl9jOYmgqPppfToXj07fTbr/Q=
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ CREATE TABLE `categories` (
44
44
` category_name` varchar (255 ) NOT NULL COMMENT ' The name of the category, must be unique' ,
45
45
` category_description` text NULL COMMENT ' Description of the category' ,
46
46
` category_code` varchar (100 ) NOT NULL UNIQUE COMMENT ' Unique code for the category' ,
47
+ ` category_image_url` varchar (255 ) NULL COMMENT ' URL to an image representing the category' ,
47
48
` created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT ' Timestamp of when the category was created' ,
48
49
` updated_at` timestamp NULL ON UPDATE CURRENT_TIMESTAMP COMMENT ' Timestamp of the last update to the category record' ,
49
50
` status` ENUM(' active' , ' inactive' ) NOT NULL DEFAULT ' active' COMMENT ' Current status of the category' ,
You can’t perform that action at this time.
0 commit comments