-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
461 additions
and
90 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
Submodule doc
updated
from 9566e7 to 920145
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
99 changes: 99 additions & 0 deletions
99
sumaris-core/src/main/resources/net/sumaris/core/db/changelog/hsqldb/db-changelog-2.8.12.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,99 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-4.12.xsd" | ||
logicalFilePath="https://github.com/sumaris-net/sumaris-pod/blob/master/sumaris-core/src/main/resources/net/sumaris/core/db/changelog/hsqldb/db-changelog-2.8.12.xml"> | ||
|
||
<!-- Drop the denormalized_batch_operation_fkc constraint --> | ||
<changeSet author="[email protected]" id="1700496722792-001"> | ||
<preConditions onFail="MARK_RAN"> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_operation_fkc" /> | ||
</preConditions> | ||
<dropForeignKeyConstraint baseTableName="denormalized_batch" | ||
constraintName="denormalized_batch_operation_fkc"/> | ||
</changeSet> | ||
|
||
<!-- Add a new foreign key with delete cascade --> | ||
<changeSet author="[email protected]" id="1700496722792-002"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_operation_fkc" /> | ||
</not> | ||
</preConditions> | ||
<addForeignKeyConstraint baseTableName="denormalized_batch" | ||
baseColumnNames="operation_fk" | ||
referencedTableName="operation" | ||
referencedColumnNames="id" | ||
constraintName="denormalized_batch_operation_fkc" | ||
onDelete="CASCADE"/> | ||
</changeSet> | ||
|
||
<!-- Drop the denormalized_batch_sale_fkc constraint --> | ||
<changeSet author="[email protected]" id="1700496722792-003"> | ||
<preConditions onFail="MARK_RAN"> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_sale_fkc" /> | ||
</preConditions> | ||
<dropForeignKeyConstraint baseTableName="denormalized_batch" | ||
constraintName="denormalized_batch_sale_fkc"/> | ||
</changeSet> | ||
|
||
<!-- Add a new denormalized_batch_sale_fkc with delete cascade --> | ||
<changeSet author="[email protected]" id="1700496722792-004"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_sale_fkc" /> | ||
</not> | ||
</preConditions> | ||
<addForeignKeyConstraint baseTableName="denormalized_batch" | ||
baseColumnNames="sale_fk" | ||
referencedTableName="sale" | ||
referencedColumnNames="id" | ||
constraintName="denormalized_batch_sale_fkc" | ||
onDelete="CASCADE"/> | ||
</changeSet> | ||
|
||
|
||
<!-- Drop the denormalized_batch_sort_val_batch_fkc constraint --> | ||
<changeSet author="[email protected]" id="1700496722792-005"> | ||
<preConditions onFail="MARK_RAN"> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_sort_val_batch_fkc" /> | ||
</preConditions> | ||
<dropForeignKeyConstraint baseTableName="denormalized_batch_sort_val" | ||
constraintName="denormalized_batch_sort_val_batch_fkc"/> | ||
</changeSet> | ||
|
||
<!-- Add a new denormalized_batch_sort_val_batch_fkc with delete cascade --> | ||
<changeSet author="[email protected]" id="1700496722792-006"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_sort_val_batch_fkc" /> | ||
</not> | ||
</preConditions> | ||
<addForeignKeyConstraint baseTableName="denormalized_batch_sort_val" | ||
baseColumnNames="batch_fk" | ||
referencedTableName="denormalized_batch" | ||
referencedColumnNames="id" | ||
constraintName="denormalized_batch_sort_val_batch_fkc" | ||
onDelete="CASCADE"/> | ||
</changeSet> | ||
|
||
<!-- update SYSTEM_VERSION --> | ||
<changeSet author="[email protected]" id="1700496722792-200" runOnChange="true"> | ||
<delete tableName="SYSTEM_VERSION"> | ||
<where>LABEL='2.8.12'</where> | ||
</delete> | ||
<insert tableName="SYSTEM_VERSION"> | ||
<column name="ID" valueComputed="NEXT VALUE FOR SYSTEM_VERSION_SEQ"/> | ||
<column name="LABEL">2.8.12</column> | ||
<column name="DESCRIPTION"> | ||
- Add ON DELETE CASCADE on DENORMALIZED_BATCH.OPERATION_FK; | ||
</column> | ||
<column name="CREATION_DATE" valueComputed="sysdate"/> | ||
<column name="UPDATE_DATE" valueComputed="current_timestamp"/> | ||
<column name="COMMENTS"> | ||
- Add ON DELETE CASCADE on DENORMALIZED_BATCH.OPERATION_FK; | ||
</column> | ||
</insert> | ||
</changeSet> | ||
</databaseChangeLog> |
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
98 changes: 98 additions & 0 deletions
98
sumaris-core/src/main/resources/net/sumaris/core/db/changelog/pgsql/db-changelog-2.8.12.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,98 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-4.12.xsd" | ||
logicalFilePath="https://github.com/sumaris-net/sumaris-pod/blob/master/sumaris-core/src/main/resources/net/sumaris/core/db/changelog/pgsql/db-changelog-2.8.12.xml"> | ||
|
||
<!-- Drop the denormalized_batch_operation_fkc constraint --> | ||
<changeSet author="[email protected]" id="1700496722792-001"> | ||
<preConditions onFail="MARK_RAN"> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_operation_fkc" /> | ||
</preConditions> | ||
<dropForeignKeyConstraint baseTableName="denormalized_batch" | ||
constraintName="denormalized_batch_operation_fkc"/> | ||
</changeSet> | ||
|
||
<!-- Add a new denormalized_batch_operation_fkc with delete cascade --> | ||
<changeSet author="[email protected]" id="1700496722792-002"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_operation_fkc" /> | ||
</not> | ||
</preConditions> | ||
<addForeignKeyConstraint baseTableName="denormalized_batch" | ||
baseColumnNames="operation_fk" | ||
referencedTableName="operation" | ||
referencedColumnNames="id" | ||
constraintName="denormalized_batch_operation_fkc" | ||
onDelete="CASCADE"/> | ||
</changeSet> | ||
|
||
<!-- Drop the denormalized_batch_sale_fkc constraint --> | ||
<changeSet author="[email protected]" id="1700496722792-003"> | ||
<preConditions onFail="MARK_RAN"> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_sale_fkc" /> | ||
</preConditions> | ||
<dropForeignKeyConstraint baseTableName="denormalized_batch" | ||
constraintName="denormalized_batch_sale_fkc"/> | ||
</changeSet> | ||
|
||
<!-- Add a new denormalized_batch_sale_fkc with delete cascade --> | ||
<changeSet author="[email protected]" id="1700496722792-004"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_sale_fkc" /> | ||
</not> | ||
</preConditions> | ||
<addForeignKeyConstraint baseTableName="denormalized_batch" | ||
baseColumnNames="sale_fk" | ||
referencedTableName="sale" | ||
referencedColumnNames="id" | ||
constraintName="denormalized_batch_sale_fkc" | ||
onDelete="CASCADE"/> | ||
</changeSet> | ||
|
||
<!-- Drop the denormalized_batch_sort_val_batch_fkc constraint --> | ||
<changeSet author="[email protected]" id="1700496722792-005"> | ||
<preConditions onFail="MARK_RAN"> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_sort_val_batch_fkc" /> | ||
</preConditions> | ||
<dropForeignKeyConstraint baseTableName="denormalized_batch_sort_val" | ||
constraintName="denormalized_batch_sort_val_batch_fkc"/> | ||
</changeSet> | ||
|
||
<!-- Add a new denormalized_batch_sort_val_batch_fkc with delete cascade --> | ||
<changeSet author="[email protected]" id="1700496722792-006"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<foreignKeyConstraintExists foreignKeyName="denormalized_batch_sort_val_batch_fkc" /> | ||
</not> | ||
</preConditions> | ||
<addForeignKeyConstraint baseTableName="denormalized_batch_sort_val" | ||
baseColumnNames="batch_fk" | ||
referencedTableName="denormalized_batch" | ||
referencedColumnNames="id" | ||
constraintName="denormalized_batch_sort_val_batch_fkc" | ||
onDelete="CASCADE"/> | ||
</changeSet> | ||
|
||
<!-- update SYSTEM_VERSION --> | ||
<changeSet author="[email protected]" id="1700496722792-200" runOnChange="true"> | ||
<delete tableName="SYSTEM_VERSION"> | ||
<where>LABEL='2.8.12'</where> | ||
</delete> | ||
<insert tableName="SYSTEM_VERSION"> | ||
<column name="ID" valueComputed="nextval('system_version_seq')"/> | ||
<column name="LABEL">2.8.12</column> | ||
<column name="DESCRIPTION"> | ||
- Add ON DELETE CASCADE on DENORMALIZED_BATCH.OPERATION_FK; | ||
</column> | ||
<column name="CREATION_DATE" valueComputed="current_timestamp"/> | ||
<column name="UPDATE_DATE" valueComputed="current_timestamp"/> | ||
<column name="COMMENTS"> | ||
- Add ON DELETE CASCADE on DENORMALIZED_BATCH.OPERATION_FK; | ||
</column> | ||
</insert> | ||
</changeSet> | ||
</databaseChangeLog> |
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
Oops, something went wrong.