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
5afc328e
authored
Nov 04, 2017
by
Sebastián Collado Montañez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
minor fix on grid adapt
parent
58d50c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
sails/roles/database/files/new-grid-system-adapt.sql
sails/roles/database/files/new-grid-system-adapt.sql
View file @
5afc328e
...
@@ -43,7 +43,6 @@ BEGIN
...
@@ -43,7 +43,6 @@ BEGIN
SELECT
_attributes
->>
"$.id_cat"
INTO
_id_cat
;
SELECT
_attributes
->>
"$.id_cat"
INTO
_id_cat
;
END
IF
;
END
IF
;
-- Pictogramas que estan en escenas sin categorias
-- Pictogramas que estan en escenas sin categorias
IF
(
_free_category_coord_x
IS
NOT
NULL
)
OR
(
_free_category_coord_y
IS
NOT
NULL
)
THEN
IF
(
_free_category_coord_x
IS
NOT
NULL
)
OR
(
_free_category_coord_y
IS
NOT
NULL
)
THEN
...
@@ -51,7 +50,9 @@ BEGIN
...
@@ -51,7 +50,9 @@ BEGIN
UPDATE
stu_picto
UPDATE
stu_picto
SET
SET
`attributes`
=
JSON_REPLACE
(
`attributes`
,
'$.coord_x'
,
_free_category_coord_x
),
`attributes`
=
JSON_REPLACE
(
`attributes`
,
'$.coord_x'
,
_free_category_coord_x
),
`attributes`
=
JSON_REPLACE
(
`attributes`
,
'$.coord_y'
,
_free_category_coord_y
)
`attributes`
=
JSON_REPLACE
(
`attributes`
,
'$.coord_y'
,
_free_category_coord_y
),
`attributes`
=
JSON_REPLACE
(
`attributes`
,
'$.free_category_coord_x'
,
NULL
),
`attributes`
=
JSON_REPLACE
(
`attributes`
,
'$.free_category_coord_y'
,
NULL
)
WHERE
id
=
_id_stu_picto
;
WHERE
id
=
_id_stu_picto
;
-- Pictogramas que estan en escenas con categorias
-- Pictogramas que estan en escenas con categorias
...
...
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