Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
82659b8b
authored
Aug 10, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixed upgrade.sql
parent
c5e73e2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
sails/roles/database/files/upgrade.sql
sails/roles/database/files/upgrade.sql
View file @
82659b8b
...
...
@@ -15,7 +15,9 @@ ALTER TABLE student MODIFY gender CHAR(1) DEFAULT NULL;
ALTER
TABLE
student
MODIFY
country
CHAR
(
2
)
DEFAULT
NULL
;
ALTER
TABLE
student
MODIFY
lang
VARCHAR
(
5
)
DEFAULT
NULL
;
ALTER
TABLE
license
ADD
type
enum
(
'trial'
,
'official'
)
NOT
NULL
DEFAULT
'official'
;
ALTER
TABLE
license
ADD
`type`
enum
(
'trial'
,
'official'
)
NOT
NULL
DEFAULT
'official'
;
DROP
TABLE
IF
EXISTS
`sup_off`
;
CREATE
TABLE
`sup_off`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
...
...
@@ -42,8 +44,8 @@ SET role = 'tutor'
WHERE
id_off
IS
NULL
;
UPDATE
license
SET
type
=
'official'
WHERE
type
is
not
'trial'
;
SET
`type`
=
'official'
WHERE
`type`
<>
'trial'
;
DELIMITER
$$
DROP
PROCEDURE
IF
EXISTS
supervisor_adapt
$$
...
...
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