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
02e8a89d
authored
Jun 01, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
changes actualizado
parent
9836ef65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
37 deletions
sails/src/CHANGES.md
sails/src/CHANGES.md
View file @
02e8a89d
...
...
@@ -4,40 +4,4 @@ Changes to be performed manually in servers to upgrade
## Database
Already done in dev:
-
update arasaac uri
`source update_arasaac_color_uri.sql`
-
add B&W arasaac pictos
`source arasaac_byn.sql`
-
create scene table
`CREATE TABLE IF NOT EXISTS `
scene
` (
`
id
` int(11) NOT NULL AUTO_INCREMENT,
`
name
` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`
categories
` boolean NOT NULL DEFAULT 0,
`
id_sup
` int(11) DEFAULT NULL,
`
id_stu
` int(11) NOT NULL,
PRIMARY KEY (`
id
`),
FOREIGN KEY (`
id_sup
`) REFERENCES `
supervisor
` (`
id
`),
FOREIGN KEY (`
id_stu
`) REFERENCES `
student
` (`
id
`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1
COMMENT="Scene table information. Every scene is related to some stu_pictos";`
-
Add id_active_scene to student table
`ALTER TABLE student ADD COLUMN id_active_scene INT(11) DEFAULT NULL;`
`ALTER TABLE student ADD CONSTRAINT fk_active_scene FOREIGN KEY (`
id_active_scene
`) REFERENCES scene (`
id
`);`
-
alter table stu_picto to add new reference to scene
`ALTER TABLE `
stu_picto
` ADD id_scene int(11) NOT NULL;`
`ALTER TABLE `
stu_picto
` ADD CONSTRAINT `
stu_picto_scene_fk
` FOREIGN KEY (`
id_scene
`) REFERENCES `
scene
` (`
id
`) ON DELETE CASCADE;`
(si hay problema al añadir la foreign key, hacer SET FOREIGN_KEY_CHECKS = 0; antes de añadirla y SET FOREIGN_KEY_CHECKS = 1; después)
-
load default scenes procedure
`source /vagrant/roles/database/files/scene_adapt.sql`
-
Reload enrolments trigger
`source /vagrant/roles/database/files/triggers-enrolments-integrity-constraints.sql`
-
Reload triggers-sessions-integrity-constraints.sql
Nothing to do
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