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
3c8c565f
authored
Apr 20, 2017
by
Jose Antonio
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
On delete cascade scene - stu_picto
parent
9ad212ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
sails/roles/database/files/pictodb-schema.sql
sails/src/CHANGES.md
sails/roles/database/files/pictodb-schema.sql
View file @
3c8c565f
...
@@ -540,7 +540,7 @@ ALTER TABLE `picto_tag`
...
@@ -540,7 +540,7 @@ ALTER TABLE `picto_tag`
ALTER
TABLE
`stu_picto`
ALTER
TABLE
`stu_picto`
ADD
CONSTRAINT
`fk_picto`
FOREIGN
KEY
(
`id_pic`
)
REFERENCES
`picto`
(
`id`
),
ADD
CONSTRAINT
`fk_picto`
FOREIGN
KEY
(
`id_pic`
)
REFERENCES
`picto`
(
`id`
),
ADD
CONSTRAINT
`stu_picto_ibfk_1`
FOREIGN
KEY
(
`id_stu`
)
REFERENCES
`student`
(
`id`
),
ADD
CONSTRAINT
`stu_picto_ibfk_1`
FOREIGN
KEY
(
`id_stu`
)
REFERENCES
`student`
(
`id`
),
ADD
CONSTRAINT
`stu_picto_scene_fk`
FOREIGN
KEY
(
`id_scene`
)
REFERENCES
`scene`
(
`id`
);
ADD
CONSTRAINT
`stu_picto_scene_fk`
FOREIGN
KEY
(
`id_scene`
)
REFERENCES
`scene`
(
`id`
)
ON
DELETE
CASCADE
;
--
--
-- Filtros para la tabla `stu_sup`
-- Filtros para la tabla `stu_sup`
...
...
sails/src/CHANGES.md
View file @
3c8c565f
...
@@ -35,7 +35,7 @@ Changes to be performed manually in servers to upgrade
...
@@ -35,7 +35,7 @@ Changes to be performed manually in servers to upgrade
-
alter table stu_picto to add new reference to scene
-
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 id_scene int(11) NOT NULL;`
`ALTER TABLE `
stu_picto
` ADD CONSTRAINT `
stu_picto_scene_fk
` FOREIGN KEY (`
id_scene
`) REFERENCES `
scene
` (`
id
`);`
`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)
(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
-
load default scenes procedure
...
...
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