-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Deactivated records should get 409 on GET requests * Add RAiD identifier * Fix unit tests * Fix unit tests
- Loading branch information
1 parent
b525897
commit 2988405
Showing
5 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
orcid-persistence/src/main/resources/db/updates/identifier-types/identifier-type-52-RAiD.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd"> | ||
<changeSet author="Angel Montenegro" id="ADD_RAID_IDENTIFIER_TYPE"> | ||
<preConditions onFail="MARK_RAN"> | ||
<sqlCheck expectedResult="0">select count(*) from identifier_type where id_name='RAiD';</sqlCheck> | ||
</preConditions> | ||
<sql>INSERT INTO identifier_type (id, id_name, id_resolution_prefix, id_deprecated, date_created, last_modified, primary_use) VALUES (52, 'RAiD', 'https://raid.org/', false, now(), now(), 'professional-activities');</sql> | ||
<sql>UPDATE identifier_type SET "case_sensitive" = false WHERE id_name = 'RAiD';</sql> | ||
</changeSet> | ||
</databaseChangeLog> |
10 changes: 10 additions & 0 deletions
10
orcid-persistence/src/main/resources/db/updates/varchar_to_text_hsqldb.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd"> | ||
|
||
<changeSet id="HSQLDB-Update-Identifier-type" author="Angel Montenegro" dbms="hsqldb"> | ||
<sql>ALTER TABLE identifier_type ALTER COLUMN primary_use varchar(1000);</sql> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |