diff --git a/scripts/api/data/licenses/licenseCC0-1.0.json b/scripts/api/data/licenses/licenseCC0-1.0.json index 024b3bc826a..7414546eac3 100644 --- a/scripts/api/data/licenses/licenseCC0-1.0.json +++ b/scripts/api/data/licenses/licenseCC0-1.0.json @@ -1,6 +1,6 @@ { "name": "CC0 1.0", - "uri": "https://creativecommons.org/publicdomain/zero/1.0/", + "uri": "https://creativecommons.org/publicdomain/zero/1.0", "shortDescription": "Creative Commons CC0 1.0 Universal Public Domain Dedication.", "iconUrl": "https://licensebuttons.net/p/zero/1.0/88x31.png", "active": true diff --git a/src/main/resources/db/migration/V5.9.0.1__7440-configurable-license-list.sql b/src/main/resources/db/migration/V5.9.0.1__7440-configurable-license-list.sql index 9a3ce0b37d5..cb76b2270a4 100644 --- a/src/main/resources/db/migration/V5.9.0.1__7440-configurable-license-list.sql +++ b/src/main/resources/db/migration/V5.9.0.1__7440-configurable-license-list.sql @@ -71,6 +71,13 @@ BEGIN EXCEPTION WHEN undefined_column THEN RAISE NOTICE 'license is not in table - new instance'; END; + + -- This section updates the db of those who ran the develop branch and does not make changes for new installs or upgrades from v5.9 + BEGIN + UPDATE license SET shortdescription='Creative Commons CC0 1.0 Universal Public Domain Dedication.' WHERE name='CC0'; + UPDATE license SET iconurl='https://licensebuttons.net/p/zero/1.0/88x31.png' WHERE name='CC0'; + UPDATE license SET name='CC0 1.0' WHERE name='CC0'; + END; END $$; ALTER TABLE termsofuseandaccess DROP COLUMN IF EXISTS license;