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
034ef98a
Commit
034ef98a
authored
Feb 20, 2016
by
Georgios Tsakalos
Browse files
update school db schema
change telephone from int to varchar
parent
403e3caa
Changes
1
Hide whitespace changes
Inline
Side-by-side
module/schools/data/schema.mysql.sql
View file @
034ef98a
...
...
@@ -205,7 +205,7 @@ CREATE TABLE `teacher` (
`school_id`
int
(
11
)
unsigned
NOT
NULL
,
`name`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
`surname`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
`telephone`
int
(
11
)
unsigned
NOT
NULL
,
`telephone`
varchar
(
1
9
1
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
`email`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
`branch_id`
int
(
11
)
unsigned
NOT
NULL
,
`is_principle`
tinyint
(
1
)
unsigned
DEFAULT
'0'
,
...
...
@@ -267,16 +267,16 @@ CREATE TABLE `lab` (
`name`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
`type`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
NOT
NULL
,
`area`
int
(
11
)
unsigned
NOT
NULL
,
`attachment`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
NO
T
NULL
,
`
in_school_use`
tinyint
(
1
)
unsigned
DEFAULT
'0'
,
`
o
ut_school
_use`
tinyint
(
1
)
unsigned
DEFAULT
'0'
,
`has_network`
tinyint
(
1
)
unsigned
DEFAULT
'0'
,
`attachment`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
DEFAUL
T
NULL
,
`
use_in_program`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`u
se_ex
t_school
`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`has_network`
varchar
(
191
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
,
`has_server`
tinyint
(
1
)
unsigned
DEFAULT
'0'
,
`
teacher_id
`
int
(
11
)
unsigned
DEFAULT
NULL
,
`
responsible
`
int
(
11
)
unsigned
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`school_id`
(
`school_id`
),
KEY
`index_foreignkey_lab_teacher`
(
`
teacher_id
`
),
CONSTRAINT
`c_fk_lab_
teacher_id
`
FOREIGN
KEY
(
`
teacher_id
`
)
REFERENCES
`teacher`
(
`id`
),
KEY
`index_foreignkey_lab_teacher`
(
`
responsible
`
),
CONSTRAINT
`c_fk_lab_
responsible
`
FOREIGN
KEY
(
`
responsible
`
)
REFERENCES
`teacher`
(
`id`
),
CONSTRAINT
`lab_ibfk_1`
FOREIGN
KEY
(
`school_id`
)
REFERENCES
`school`
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
;
/*!40101 SET character_set_client = @saved_cs_client */
;
...
...
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