Skip to content

Commit

Permalink
Merge pull request #6872 from deutschebank/db-contrib/waltz-6860-surv…
Browse files Browse the repository at this point in the history
…ey-instance-action-queue

Db contrib/waltz 6860 survey instance action queue
  • Loading branch information
davidwatkins73 authored Nov 17, 2023
2 parents 4808124 + e65de41 commit 5c66eac
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions waltz-schema/src/main/resources/liquibase/db.changelog-1.56.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,70 @@
<tagDatabase tag="v1.55"/> <!-- tag the current db version, i.e. the last -->
</changeSet>

<changeSet id="20231117-6860-1"
author="woodjes">
<comment>6860: create survey_instance_action_queue table</comment>
<createTable tableName="survey_instance_action_queue">
<column name="id"
type="${id.type}"
autoIncrement="true">
<constraints nullable="false"
primaryKey="true"
primaryKeyName="survey_instance_action_queue_pkey"/>
</column>
<column name="action"
type="${enum.type}">
<constraints nullable="false"/>
</column>
<column name="survey_instance_id"
type="${id.type}">
<constraints nullable="false"/>
</column>
<column name="action_params"
type="${config-value.type}">
<constraints nullable="true"/>
</column>
<column name="initial_state"
type="${enum.type}">
<constraints nullable="false"/>
</column>
<column name="submitted_at"
type="TIMESTAMP"
defaultValueComputed="${now.value}">
<constraints nullable="false"/>
</column>
<column name="submitted_by"
type="${name.type}">
<constraints nullable="false"/>
</column>
<column name="actioned_at"
type="TIMESTAMP">
<constraints nullable="true"/>
</column>
<column name="status"
type="${enum.type}"
defaultValue="PENDING">
<constraints nullable="false"/>
</column>
<column name="message"
type="${longvarchar.type}">
<constraints nullable="true"/>
</column>
<column name="provenance"
type="${provenance.type}">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>

<changeSet id="20231117-6860-2"
author="woodjes">
<comment>6860: create survey_instance_action_queue table</comment>
<addForeignKeyConstraint baseTableName="survey_instance_action_queue"
baseColumnNames="survey_instance_id"
constraintName="si_action_queue_si_id_fk"
referencedTableName="survey_instance"
referencedColumnNames="id"/>
</changeSet>

</databaseChangeLog>

0 comments on commit 5c66eac

Please sign in to comment.