Skip to content

Commit 47a44f4

Browse files
Daniel BerthereauDaniel Berthereau
authored andcommitted
Upgraded doctrine for Omeka 3.1.
1 parent 856ce70 commit 47a44f4

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ protected function postInstall(): void
203203
if ($module) {
204204
$sql = 'DELETE FROM `module` WHERE `id` = "PslSearchForm";';
205205
$connection = $services->get('Omeka\Connection');
206-
$connection->executeUpdate($sql);
206+
$connection->executeStatement($sql);
207207
$message = new Message(
208208
'The module "%s" was upgraded by module "%s" and uninstalled.', // @translate
209209
'PslSearchForm', 'Advanced Search'

data/scripts/upgrade_from_advancedsearchplus.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
WHERE
3535
`setting`.`id` LIKE "advancedsearchplus#_%" ESCAPE "#";
3636
SQL;
37-
$connection->executeUpdate($sql);
37+
$connection->executeStatement($sql);
3838

3939
// Convert the site settings.
4040

@@ -48,7 +48,7 @@
4848
WHERE
4949
`site_setting`.`id` LIKE "advancedsearchplus#_%" ESCAPE "#";
5050
SQL;
51-
$connection->executeUpdate($sql);
51+
$connection->executeStatement($sql);
5252

5353
// Remove original data and module.
5454

@@ -69,7 +69,7 @@
6969
$sqls = array_filter(array_map('trim', explode(";\n", $sql)));
7070
foreach ($sqls as $sql) {
7171
try {
72-
$connection->executeUpdate($sql);
72+
$connection->executeStatement($sql);
7373
} catch (\Exception $e) {
7474
$messenger->addError($e->getMessage());
7575
}

data/scripts/upgrade_from_search.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
$sqls = array_filter(array_map('trim', explode(";\n", $sql)));
8282
foreach ($sqls as $sql) {
8383
try {
84-
$connection->executeUpdate($sql);
84+
$connection->executeStatement($sql);
8585
} catch (\Exception $e) {
8686
$messenger->addError($e->getMessage());
8787
}
@@ -103,7 +103,7 @@
103103
"search_batch_size"
104104
);
105105
SQL;
106-
$connection->executeUpdate($sql);
106+
$connection->executeStatement($sql);
107107

108108
// Convert the site settings.
109109

@@ -121,7 +121,7 @@
121121
"search_api_page"
122122
);
123123
SQL;
124-
$connection->executeUpdate($sql);
124+
$connection->executeStatement($sql);
125125

126126
// Do some renaming for settings.
127127

@@ -149,7 +149,7 @@
149149
"advancedsearch_api_page"
150150
);
151151
SQL;
152-
$connection->executeUpdate($sql);
152+
$connection->executeStatement($sql);
153153

154154
// Do some renaming for site settings.
155155

@@ -178,7 +178,7 @@
178178
"advancedsearch_api_page"
179179
);
180180
SQL;
181-
$connection->executeUpdate($sql);
181+
$connection->executeStatement($sql);
182182

183183
// Remove original data and module.
184184

@@ -217,7 +217,7 @@
217217
$sqls = array_filter(array_map('trim', explode(";\n", $sql)));
218218
foreach ($sqls as $sql) {
219219
try {
220-
$connection->executeUpdate($sql);
220+
$connection->executeStatement($sql);
221221
} catch (\Exception $e) {
222222
$messenger->addError($e->getMessage());
223223
}
@@ -329,7 +329,7 @@
329329
SET `settings` = $searchConfigSettings
330330
WHERE `id` = $id;
331331
SQL;
332-
$connection->executeUpdate($sql);
332+
$connection->executeStatement($sql);
333333

334334
// All old adapters are now managed by the main one, unless the api.
335335
// They should be updated manually.
@@ -338,7 +338,7 @@
338338
SET `form_adapter` = "main"
339339
WHERE `form_adapter` NOT IN ("api");
340340
SQL;
341-
$connection->executeUpdate($sql);
341+
$connection->executeStatement($sql);
342342
}
343343

344344
$message = new Message(

0 commit comments

Comments
 (0)