Skip to content

Commit

Permalink
Released version 3.4.46.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Jul 24, 2023
1 parent 9f20536 commit 11f0c48
Show file tree
Hide file tree
Showing 2 changed files with 33 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-BulkImport"
support_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-BulkImport/-/issues"
configurable = true
version = "3.4.45"
version = "3.4.46"
omeka_version_constraint = "^3.1.0 || ^4.0.0"
dependencies = "Log"
32 changes: 32 additions & 0 deletions data/scripts/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,3 +728,35 @@
);
$messenger->addSuccess($message);
}

if (version_compare($oldVersion, '3.4.46', '<')) {
// Update vocabulary via sql.
$sql = <<<SQL
UPDATE `vocabulary`
SET
`comment` = 'Curation of resources for Omeka.'
WHERE `prefix` = 'curation'
;
UPDATE `property`
JOIN `vocabulary` on `vocabulary`.`id` = `property`.`vocabulary_id`
SET
`property`.`local_name` = 'start',
`property`.`label` = 'Start',
`property`.`comment` = 'A start related to the resource, for example the start of an embargo.'
WHERE
`vocabulary`.`prefix` = 'curation'
AND `property`.`local_name` = 'dateStart'
;
UPDATE `property`
JOIN `vocabulary` on `vocabulary`.`id` = `property`.`vocabulary_id`
SET
`property`.`local_name` = 'end',
`property`.`label` = 'End',
`property`.`comment` = 'A end related to the resource, for example the end of an embargo.'
WHERE
`vocabulary`.`prefix` = 'curation'
AND `property`.`local_name` = 'dateEnd'
;
SQL;
$connection->executeStatement($sql);
}

0 comments on commit 11f0c48

Please sign in to comment.