Skip to content

Commit

Permalink
Pull request #328: Changelog to create survey_instance_action_queue t…
Browse files Browse the repository at this point in the history
…able

Merge in WALTZ/waltz from WALTZ/waltz-jws:CTCTOWALTZ-2680-survey-instance-action-queue-6860 to db-feature/waltz-6860-survey-instance-action-queue

* commit '22a124d5c8270ed4cc96974cc1961574addbc74d':
  Changelog to create survey_instance_action_queue table
  Changelog to create survey_instance_action_queue table
  • Loading branch information
jessica-woodland-scott-db authored and db-waltz committed Nov 17, 2023
2 parents 620a411 + 22a124d commit e65de41
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 e65de41

Please sign in to comment.