diff --git a/SQL/0000-00-00-schema.sql b/SQL/0000-00-00-schema.sql index d032c377fb0..abb5dd9a732 100644 --- a/SQL/0000-00-00-schema.sql +++ b/SQL/0000-00-00-schema.sql @@ -252,7 +252,7 @@ CREATE TABLE `test_names` ( `ID` int(10) unsigned NOT NULL auto_increment, `Test_name` varchar(255) default NULL, `Full_name` varchar(255) default NULL, - `Sub_group` int(11) unsigned default NULL, + `Sub_group` int(11) unsigned NOT NULL, `IsDirectEntry` boolean default NULL, PRIMARY KEY (`ID`), UNIQUE KEY `Test_name` (`Test_name`), diff --git a/SQL/New_patches/2023-11-07-No-Null-Subgroup.sql b/SQL/New_patches/2023-11-07-No-Null-Subgroup.sql new file mode 100644 index 00000000000..2a7dfc9bd25 --- /dev/null +++ b/SQL/New_patches/2023-11-07-No-Null-Subgroup.sql @@ -0,0 +1 @@ +ALTER TABLE test_names CHANGE Sub_group Sub_group int(11) unsigned not null; diff --git a/modules/dashboard/test/DashboardTest.php b/modules/dashboard/test/DashboardTest.php index addaa3c310d..4a42da2ca7c 100644 --- a/modules/dashboard/test/DashboardTest.php +++ b/modules/dashboard/test/DashboardTest.php @@ -121,6 +121,7 @@ function setUp(): void [ 'ID' => '111', 'Test_name' => 'TestName11111111111', + 'Sub_group' => 1, ] ); $this->DB->insert(