Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- databaseChangeLog:
- - changeSet:
- id: create-task-dependencies-table
- author: Leyla
- changes:
- - createTable:
- tableName: task_dependencies
- columns:
- - column:
- name: task_id
- type: bigint
- constraints:
- nullable: false
- - column:
- name: dependency_id
- type: bigint
- constraints:
- nullable: false
- - addForeignKeyConstraint:
- baseColumnNames: task_id
- baseTableName: task_dependencies
- constraintName: fk_task_dependencies_task_id
- deferrable: true
- initiallyDeferred: true
- onDelete: RESTRICT
- onUpdate: RESTRICT
- referencedColumnNames: id
- referencedTableName: tasks
- referencedTableSchemaName: public
- validate: true
- - addForeignKeyConstraint:
- baseColumnNames: dependency_id
- baseTableName: task_dependencies
- constraintName: fk_task_dependencies_dependency_id
- deferrable: true
- initiallyDeferred: true
- onDelete: RESTRICT
- onUpdate: RESTRICT
- referencedColumnNames: id
- referencedTableName: tasks
- referencedTableSchemaName: public
- validate: true
- databaseChangeLog:
- - changeSet:
- id: create-task-successors-table
- author: Leyla
- changes:
- - createTable:
- tableName: task_successors
- columns:
- - column:
- name: task_id
- type: bigint
- constraints:
- nullable: false
- - column:
- name: successor_id
- type: bigint
- constraints:
- nullable: false
- - addForeignKeyConstraint:
- baseColumnNames: task_id
- baseTableName: task_successors
- constraintName: fk_task_successors_task_id
- deferrable: true
- initiallyDeferred: true
- onDelete: RESTRICT
- onUpdate: RESTRICT
- referencedColumnNames: id
- referencedTableName: tasks
- referencedTableSchemaName: public
- validate: true
- - addForeignKeyConstraint:
- baseColumnNames: successor_id
- baseTableName: task_successors
- constraintName: fk_task_successors_task_id
- deferrable: true
- initiallyDeferred: true
- onDelete: RESTRICT
- onUpdate: RESTRICT
- referencedColumnNames: id
- referencedTableName: tasks
- referencedTableSchemaName: public
- validate: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement