Skip to content

Commit

Permalink
Released version 3.4.31.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Apr 22, 2024
1 parent 258c12f commit 10b1377
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/module.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ author_link = "https://gitlab.com/Daniel-KM"
module_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-BulkExport"
support_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-BulkExport/issues"
configurable = false
version = "3.4.30"
version = "3.4.31"
omeka_version_constraint = "^4.0.0"
dependencies = "Log"
25 changes: 25 additions & 0 deletions data/scripts/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,3 +343,28 @@
);
$messenger->addSuccess($message);
}

if (version_compare($oldVersion, '3.4.31', '<')) {
$sqls = <<<'SQL'
UPDATE `bulk_exporter`
SET
`config` =
REPLACE(
REPLACE(
`config`,
"properties_small", "properties_max_5000"),
"properties_large", "properties_min_5000");
UPDATE `bulk_export`
SET
`params` =
REPLACE(
REPLACE(
`params`,
"properties_small", "properties_max_5000"),
"properties_large", "properties_min_5000");
SQL;
foreach (array_filter(explode(";\n", $sqls)) as $sql) {
$connection->executeStatement($sql);
}
}

0 comments on commit 10b1377

Please sign in to comment.