Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
81c5a30f
Commit
81c5a30f
authored
4 years ago
by
Florian Azizian
Browse files
Options
Downloads
Patches
Plain Diff
FIX #14871 TIME 0:05 Improve action migration for 20.03
parent
a1f16be7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
migration/20.03/2003.sql
+10
-1
10 additions, 1 deletion
migration/20.03/2003.sql
migration/20.03/migrateIndexing.php
+8
-1
8 additions, 1 deletion
migration/20.03/migrateIndexing.php
with
18 additions
and
2 deletions
migration/20.03/2003.sql
+
10
−
1
View file @
81c5a30f
...
...
@@ -5,10 +5,19 @@
-- --
-- --
-- *************************************************************************--
UPDATE
parameters
SET
param_value_string
=
'20.03'
WHERE
id
=
'database_version'
;
UPDATE
parameters
SET
param_value_string
=
'20.03
.11
'
WHERE
id
=
'database_version'
;
UPDATE
parameters
SET
description
=
'Département par défaut sélectionné dans les autocomplétions de la Base Adresse Nationale'
WHERE
id
=
'defaultDepartment'
;
/*CLEAN DATA*/
/*Exists in groupbasket_status but not in actions_groupbaskets*/
DELETE
FROM
groupbasket_status
WHERE
system_id
IN
(
select
system_id
from
groupbasket_status
gbs
where
not
exists
(
select
1
from
actions_groupbaskets
agb
where
gbs
.
action_id
=
agb
.
id_action
and
gbs
.
group_id
=
agb
.
group_id
and
gbs
.
basket_id
=
agb
.
basket_id
)
)
/* VIEWS */
DROP
VIEW
IF
EXISTS
res_view_letterbox
;
DROP
VIEW
IF
EXISTS
res_view_attachments
;
...
...
This diff is collapsed.
Click to expand it.
migration/20.03/migrateIndexing.php
+
8
−
1
View file @
81c5a30f
...
...
@@ -158,7 +158,7 @@ foreach ($customs as $custom) {
$migrated
=
0
;
$actionsToDelete
=
[];
foreach
(
$basketsWithStatuses
as
$value
)
{
if
(
!
in_array
(
$value
[
'action_id'
],
$actionsToDelete
))
{
if
(
!
in_array
(
$value
[
'action_id'
],
$actionsToDelete
)
&&
!
in_array
(
$value
[
'action_id'
],
$actions
)
)
{
$actionsToDelete
[]
=
$value
[
'action_id'
];
}
...
...
@@ -227,5 +227,12 @@ foreach ($customs as $custom) {
'data'
=>
[
'indexing'
]
]);
\SrcCore\models\DatabaseModel
::
update
([
'set'
=>
[
'action_page'
=>
''
,
'component'
=>
'confirmAction'
],
'table'
=>
'actions'
,
'where'
=>
[
'action_page = ?'
],
'data'
=>
[
'index_mlb'
]
]);
printf
(
"Migration Indexing Basket (CUSTOM
{
$custom
}
) : "
.
$migrated
.
" action(s) avec des status (mot clé indexation) trouvé(s) et migré(s).
\n
"
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment