Skip to content

Commit

Permalink
fixed liquibase files
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-lg committed Oct 23, 2024
1 parent f2156e9 commit ae3601d
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@

<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">
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="144" author="fmendez" runInTransaction="false">
<sql splitStatements="false" stripComments="true">
<![CDATA[
ALTER TYPE enum_installation_type ADD VALUE 'MDT_INSTALLATION';
ALTER TYPE enum_endpoint_type ADD VALUE 'BIOM_1_0';
ALTER TYPE enum_endpoint_type ADD VALUE 'BIOM_2_1';
ALTER TYPE enum_installation_type ADD VALUE 'MDT_INSTALLATION';
ALTER TYPE enum_endpoint_type ADD VALUE 'BIOM_1_0';
ALTER TYPE enum_endpoint_type ADD VALUE 'BIOM_2_1';
]]>
</sql>
</changeSet>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +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">
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="143" author="mpodolskiy">
<sql splitStatements="false" stripComments="false">
<![CDATA[
ALTER TABLE contact ADD COLUMN salutation text;
]]>
<changeSet id="145" author="mpodolskiy">
<sql>
ALTER TABLE contact ADD COLUMN salutation TEXT;
</sql>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<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">

<!-- Set the search paths to public. For security, VACUUM uses an empty search path and fails otherwise.
https://stackoverflow.com/questions/65237130/getting-function-does-not-exist-error-in-vacuumdb -->
<changeSet id="146" author="mblissett">
<sql>
ALTER FUNCTION collection_change_trigger SET search_path = public;
ALTER FUNCTION collection_contact_change_trigger SET search_path = public;
ALTER FUNCTION collection_descriptor_change_trigger SET search_path = public;
ALTER FUNCTION collection_descriptor_group_change_trigger SET search_path = public;
ALTER FUNCTION collection_descriptor_verbatim_change_trigger SET search_path = public;
ALTER FUNCTION contact_change_trigger SET search_path = public;
ALTER FUNCTION dataset_change_trigger SET search_path = public;
ALTER FUNCTION installation_change_trigger SET search_path = public;
ALTER FUNCTION institution_change_trigger SET search_path = public;
ALTER FUNCTION network_change_trigger SET search_path = public;
ALTER FUNCTION node_change_trigger SET search_path = public;
ALTER FUNCTION organization_change_trigger SET search_path = public;
ALTER FUNCTION normalize_name SET search_path = public;
</sql>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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="144" author="auzun" runInTransaction="false">
<changeSet id="147" author="auzun" runInTransaction="false">
<sql splitStatements="false" stripComments="true">
<![CDATA[
ALTER TYPE public.enum_identifier_type ADD VALUE 'CLB_DATASET_KEY';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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="145" author="auzun" runInTransaction="false">
<changeSet id="148" author="auzun" runInTransaction="false">
<sql splitStatements="false" stripComments="true">
<![CDATA[
ALTER TABLE collection_identifier ADD COLUMN is_primary BOOLEAN NOT NULL DEFAULT false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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="148" author="mlopez" runInTransaction="false">
<changeSet id="149" author="mlopez" runInTransaction="false">
<sql splitStatements="false" stripComments="true">
<![CDATA[
ALTER TABLE collection_descriptor ADD COLUMN kingdom_key integer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<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">
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="149" author="mlopez" runInTransaction="false">
<changeSet id="150" author="mlopez" runInTransaction="false">
<sql splitStatements="false" stripComments="true">
<![CDATA[
CREATE OR REPLACE FUNCTION similar_name_score(input1 text, input2 text[])
Expand Down
13 changes: 7 additions & 6 deletions registry-persistence/src/main/resources/liquibase/master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,15 @@
<include file="liquibase/137-featured-image-attribution-grscicoll.xml" />
<include file="liquibase/138-dataset-occurrence-download-created-index.xml" />
<include file="liquibase/139-dataset-occurrence-download-created-index.xml" />
<include file="liquibase/140-collection-descriptors-grscicoll.xml" />
<include file="liquibase/141-ih-identifier-change-sugestion.xml" />
<include file="liquibase/140-ih-identifier-change-sugestion.xml" />
<include file="liquibase/141-collection-descriptors-grscicoll.xml" />
<include file="liquibase/142-grscicoll-lookup-indexes.xml" />
<include file="liquibase/143-removed-fields-grscicoll.xml" />
<include file="liquibase/144-mdt-endpoint-installation-types.xml" />
<include file="liquibase/145-contact-salutation.xml" />
<include file="liquibase/146-isil-clb-identifiers.xml" />
<include file="liquibase/147-primary-identifier-grscicoll.xml" />
<include file="liquibase/148-taxon-fields-collection-descriptors.xml" />
<include file="liquibase/149-similar-name-list-function.xml" />
<include file="liquibase/146-function-search-paths.xml" />
<include file="liquibase/147-isil-clb-identifiers.xml" />
<include file="liquibase/148-primary-identifier-grscicoll.xml" />
<include file="liquibase/149-taxon-fields-collection-descriptors.xml" />
<include file="liquibase/150-similar-name-list-function.xml" />
</databaseChangeLog>

0 comments on commit ae3601d

Please sign in to comment.