@@ -27,6 +27,9 @@ public function testSimple() : void
2727
2828 CONSTRAINT `check_SimpleBean2_0` CHECK (IF(`col3` = 'abc', `col4` IS NOT NULL, TRUE)),
2929 CONSTRAINT `check_SimpleBean2_col3_0` CHECK (CHAR_LENGTH(`col3`) > 3),
30+ CONSTRAINT `check_SimpleBean2_col3_string_not_empty` CHECK (`col3` != ''),
31+ CONSTRAINT `check_SimpleBean2_col4_string_not_empty` CHECK (`col4` != ''),
32+ CONSTRAINT `check_SimpleBean2_col6_string_not_empty` CHECK (`col6` != ''),
3033
3134 PRIMARY KEY (`id`)
3235 )
@@ -44,6 +47,11 @@ public function testSimple() : void
4447
4548 CONSTRAINT `unique_SimpleBeanAttribute_col3` UNIQUE (`col3`),
4649
50+ CONSTRAINT `check_SimpleBeanAttribute_col3_string_not_empty` CHECK (`col3` != ''),
51+ CONSTRAINT `check_SimpleBeanAttribute_col4_string_not_empty` CHECK (`col4` != ''),
52+ CONSTRAINT `check_SimpleBeanAttribute_col5_string_not_empty` CHECK (`col5` != ''),
53+ CONSTRAINT `check_SimpleBeanAttribute_col6_string_not_empty` CHECK (`col6` != ''),
54+
4755 PRIMARY KEY (`id`)
4856 )
4957 CHARSET = `utf8mb4`
@@ -119,6 +127,8 @@ public function testSimple() : void
119127 CONSTRAINT `unique_AttributeBean_col5` UNIQUE (`col5`),
120128 CONSTRAINT `unique_AttributeBean_col6` UNIQUE (`col6`),
121129
130+ CONSTRAINT `check_AttributeBean_code_string_not_empty` CHECK (`code` != ''),
131+
122132 PRIMARY KEY (`code`)
123133 )
124134 CHARSET = `utf8mb4`
@@ -144,6 +154,11 @@ public function testSimple() : void
144154
145155 FOREIGN KEY (`simple_bean_2_id`) REFERENCES `simple_bean_2`(`id`) ON UPDATE RESTRICT ON DELETE RESTRICT,
146156
157+ CONSTRAINT `check_SimpleBean1_col3_string_not_empty` CHECK (`col3` != ''),
158+ CONSTRAINT `check_SimpleBean1_col4_string_not_empty` CHECK (`col4` != ''),
159+ CONSTRAINT `check_SimpleBean1_col5_string_not_empty` CHECK (`col5` != ''),
160+ CONSTRAINT `check_SimpleBean1_col6_string_not_empty` CHECK (`col6` != ''),
161+
147162 PRIMARY KEY (`id`)
148163 )
149164 CHARSET = `utf8mb4`
0 commit comments