eduadmin_id is optional

parent d408698d
......@@ -364,7 +364,7 @@ CREATE TABLE `school` (
`schooltype_id` int(11) unsigned NOT NULL,
`prefecture_id` int(11) unsigned NOT NULL,
`educationlevel_id` int(11) unsigned NOT NULL,
`eduadmin_id` int(11) unsigned NOT NULL,
`eduadmin_id` int(11) unsigned DEFAULT NULL,
`created` int(11) unsigned NOT NULL,
`creator` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`registry_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
......
......@@ -300,7 +300,7 @@ CREATE TABLE `school` (
`schooltype_id` int(11) unsigned NOT NULL,
`prefecture_id` int(11) unsigned NOT NULL,
`educationlevel_id` int(11) unsigned NOT NULL,
`eduadmin_id` int(11) unsigned NOT NULL,
`eduadmin_id` int(11) unsigned DEFAULT NULL,
`created` int(11) unsigned NOT NULL,
`creator` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`registry_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
......
......@@ -91,7 +91,7 @@ class School
]));
$municipality = new Input('municipality');
$municipality->setRequired(true)
$municipality->setRequired(false)
->getFilterChain()
->attach(new Filter\StripTags())
->attach(new Filter\StringTrim());
......@@ -112,10 +112,10 @@ class School
->attach(new Filter\ToInt());
$eduadminId = new Input('eduadmin_id');
$eduadminId->setRequired(true)
$eduadminId->setRequired(false)
->getFilterChain()
->attach(new Filter\ToInt());
$creator = new Input('creator');
$creator->setRequired(true)
->getValidatorChain()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment