Skip to content

Commit 84b9a7f

Browse files
authored
Adding NOT NULL constraint to the 'created_at' column in the 'categories' table for better data integrity, ensuring every category record has its creation timestamp. (#233)
Co-authored-by: GitHub Gen Changes <>
1 parent db6304b commit 84b9a7f

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Modify "users" table
2+
ALTER TABLE `users` DROP CHECK `users_chk_1`, ADD CONSTRAINT `users_chk_1` CHECK (regexp_like(`email_address`,_utf8mb4'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\00003.[a-zA-Z]{2,}$'));

dirs/ecommerce/migrations/atlas.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
h1:ttJZGa0MoHKvFY1PqRzXuYIqwTEP39m+WcFY/cddw94=
1+
h1:G4ox1w2AYsS7wmtvCp6Y4ZrgyqIUftTwRZa8gf5Osgc=
22
20230316085611.sql h1:br6W6LPEnnsejlz/7hRm9zthwStCzjN2vZkqVPxlmvo=
33
20230316090502.sql h1:GfeRjkSeoCt3JVRtLQNa/r50lRfpAPXS7AqTU2ZNFgY=
44
20230531091333_products_categories.sql h1:59q2M59dV5dJNv4Lyb2TAJz8V6HekgkLn9z4DoL98jA=
@@ -129,3 +129,4 @@ h1:ttJZGa0MoHKvFY1PqRzXuYIqwTEP39m+WcFY/cddw94=
129129
20251102131140.sql h1:6m5KVCL6GmycOmkwBCJRcpxm+RSsFPbV4UMMZQrBKrc=
130130
20251104132019.sql h1:/+MEE2P3Q6Ll/lxa5YXW6tew/5Pldx1K/j4xFHqlWEs=
131131
20251106131809.sql h1:JxnMLOGSyzhJEX4bnW4HPpyVDi4MnBWsUbbeLBFiSoc=
132+
20251109131247.sql h1:tnLmsPNKQbmdT4G/39R78TAjmd3Yo+gO4UJ+EW3tDQI=

dirs/ecommerce/schema.sql

-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)