Added foreign key with onDelete clause on user to label and criterion relationships
FEA: ItEr77S15FilteringEnhancements
This commit is contained in:
parent
1bf09abeaf
commit
46ba611952
1 changed files with 17 additions and 0 deletions
|
|
@ -256,4 +256,21 @@
|
|||
</addColumn>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="add-projects_filter_label_id-fk-to-user_table" author="ltilve">
|
||||
<comment>Add Foreign Key constraint on label reference</comment>
|
||||
<addForeignKeyConstraint constraintName="user_label_fkey"
|
||||
baseTableName="user_table" baseColumnNames="projects_filter_label_id"
|
||||
referencedTableName="label" referencedColumnNames="id"
|
||||
onDelete="SET NULL" />
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="add-resources_load_filter_fk_id-column-to-user_table" author="ltilve">
|
||||
<comment>Add Foreign Key constraint on criterion reference</comment>
|
||||
<addForeignKeyConstraint constraintName="user_criterion_fkey"
|
||||
baseTableName="user_table" baseColumnNames="resources_load_filter_criterion_id"
|
||||
referencedTableName="criterion" referencedColumnNames="id"
|
||||
onDelete="SET NULL"/>
|
||||
</changeSet>
|
||||
|
||||
|
||||
</databaseChangeLog>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue