Commit 5b6cc206 authored by Vassilis Kanellopoulos's avatar Vassilis Kanellopoulos
Browse files

eduadmin_id is optional

parent d408698d
...@@ -364,7 +364,7 @@ CREATE TABLE `school` ( ...@@ -364,7 +364,7 @@ CREATE TABLE `school` (
`schooltype_id` int(11) unsigned NOT NULL, `schooltype_id` int(11) unsigned NOT NULL,
`prefecture_id` int(11) unsigned NOT NULL, `prefecture_id` int(11) unsigned NOT NULL,
`educationlevel_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, `created` int(11) unsigned NOT NULL,
`creator` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `creator` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`registry_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `registry_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
......
...@@ -300,7 +300,7 @@ CREATE TABLE `school` ( ...@@ -300,7 +300,7 @@ CREATE TABLE `school` (
`schooltype_id` int(11) unsigned NOT NULL, `schooltype_id` int(11) unsigned NOT NULL,
`prefecture_id` int(11) unsigned NOT NULL, `prefecture_id` int(11) unsigned NOT NULL,
`educationlevel_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, `created` int(11) unsigned NOT NULL,
`creator` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `creator` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`registry_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `registry_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
......
...@@ -91,7 +91,7 @@ class School ...@@ -91,7 +91,7 @@ class School
])); ]));
$municipality = new Input('municipality'); $municipality = new Input('municipality');
$municipality->setRequired(true) $municipality->setRequired(false)
->getFilterChain() ->getFilterChain()
->attach(new Filter\StripTags()) ->attach(new Filter\StripTags())
->attach(new Filter\StringTrim()); ->attach(new Filter\StringTrim());
...@@ -112,10 +112,10 @@ class School ...@@ -112,10 +112,10 @@ class School
->attach(new Filter\ToInt()); ->attach(new Filter\ToInt());
$eduadminId = new Input('eduadmin_id'); $eduadminId = new Input('eduadmin_id');
$eduadminId->setRequired(true) $eduadminId->setRequired(false)
->getFilterChain() ->getFilterChain()
->attach(new Filter\ToInt()); ->attach(new Filter\ToInt());
$creator = new Input('creator'); $creator = new Input('creator');
$creator->setRequired(true) $creator->setRequired(true)
->getValidatorChain() ->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