Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
gredu_labs
Commits
5b6cc206
Commit
5b6cc206
authored
Apr 01, 2016
by
Vassilis Kanellopoulos
Browse files
eduadmin_id is optional
parent
d408698d
Changes
3
Hide whitespace changes
Inline
Side-by-side
data/db/schema.mysql.sql
View file @
5b6cc206
...
...
@@ -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
NO
T
NULL
,
`eduadmin_id`
int
(
11
)
unsigned
DEFAUL
T
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
,
...
...
module/schools/data/schema.mysql.sql
View file @
5b6cc206
...
...
@@ -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
NO
T
NULL
,
`eduadmin_id`
int
(
11
)
unsigned
DEFAUL
T
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
,
...
...
module/schools/src/InputFilter/School.php
View file @
5b6cc206
...
...
@@ -91,7 +91,7 @@ class School
]));
$municipality
=
new
Input
(
'municipality'
);
$municipality
->
setRequired
(
tru
e
)
$municipality
->
setRequired
(
fals
e
)
->
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
(
tru
e
)
$eduadminId
->
setRequired
(
fals
e
)
->
getFilterChain
()
->
attach
(
new
Filter\ToInt
());
$creator
=
new
Input
(
'creator'
);
$creator
->
setRequired
(
true
)
->
getValidatorChain
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment