Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
mapas
Mapas - MS
Commits
e4d05c63
Commit
e4d05c63
authored
3 years ago
by
erleibiazzio
Browse files
Options
Download
Email Patches
Plain Diff
Faz com que o db-update de deleção de metadados duplicados rode novamente
parent
12a25a72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
themes/MatoGrossoSul/db-updates.php
themes/MatoGrossoSul/db-updates.php
+3
-1
No files found.
themes/MatoGrossoSul/db-updates.php
View file @
e4d05c63
...
...
@@ -29,7 +29,7 @@ return [
file_put_contents
(
BASE_PATH
.
"files/delete_duplecated_registrations_ms_cuturacidada_01_log-dbupdate.txt"
,
implode
(
"
\n
"
,
$result
));
},
'DROP Metadados duplicados'
=>
function
()
use
(
$conn
)
{
'DROP Metadados duplicados
- 2
'
=>
function
()
use
(
$conn
,
$app
)
{
$conn
->
executeQuery
(
"DELETE FROM agent_meta m1
USING (
SELECT MAX(id) as id, key, object_id
...
...
@@ -40,6 +40,7 @@ return [
m1.key = m2.key AND
m1.object_id = m2.object_id AND
m1.id <> m2.id;"
);
$app
->
log
->
debug
(
"Limpaza de metados em agentes feita"
);
$conn
->
executeQuery
(
"DELETE FROM registration_meta m1
...
...
@@ -52,5 +53,6 @@ return [
m1.key = m2.key AND
m1.object_id = m2.object_id AND
m1.id <> m2.id;"
);
$app
->
log
->
debug
(
"Limpaza de metados em inscrições feita"
);
}
];
This diff is collapsed.
Click to expand it.
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