[ENT-1145]: change name of foreign keys to a human-readable format of FK__from_table__to_table (#275)

This commit is contained in:
Tudor Malene 2018-01-03 15:35:31 +00:00 committed by GitHub
parent e9c2090832
commit b8fa95b3d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View File

@ -169,27 +169,27 @@
</changeSet>
<changeSet author="tudormalene (generated)" id="1513267683777-24">
<addForeignKeyConstraint baseColumnNames="rev" baseTableName="certificate_signing_request_AUD"
constraintName="FK5G5CAGCRX7SIU8LWTAVIRUNXD" deferrable="false"
constraintName="FK__certificate_signing_request_AUD__REVINFO" deferrable="false"
initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT"
referencedColumnNames="rev" referencedTableName="REVINFO"/>
</changeSet>
<changeSet author="tudormalene (generated)" id="1513267683777-25">
<addForeignKeyConstraint baseColumnNames="rev" baseTableName="CertificateSigningRequestEntity_modifiedBy_AUD"
constraintName="FKCNMAJ1J6TO8D5GBY6N1Q3CK9C" deferrable="false"
constraintName="FK__CertificateSigningRequestEntity_modifiedBy_AUD__REVINFO" deferrable="false"
initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT"
referencedColumnNames="rev" referencedTableName="REVINFO"/>
</changeSet>
<changeSet author="tudormalene (generated)" id="1513267683777-26">
<addForeignKeyConstraint baseColumnNames="CertificateSigningRequestEntity_request_id"
baseTableName="CertificateSigningRequestEntity_modifiedBy"
constraintName="FKLFW2KLKDPLYDROVIBVEOMF9PU" deferrable="false"
constraintName="FK__CertificateSigningRequestEntity_modifiedBy__certificate_signing_request" deferrable="false"
initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT"
referencedColumnNames="request_id" referencedTableName="certificate_signing_request"/>
</changeSet>
<changeSet author="tudormalene (generated)" id="1513267683777-27">
<addForeignKeyConstraint baseColumnNames="certificate_signing_request" baseTableName="certificate_data" constraintName="FKLQK11Q68B23W062SH0CLNQKLY" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="request_id" referencedTableName="certificate_signing_request"/>
<addForeignKeyConstraint baseColumnNames="certificate_signing_request" baseTableName="certificate_data" constraintName="FK__certificate_data__certificate_signing_request" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="request_id" referencedTableName="certificate_signing_request"/>
</changeSet>
<changeSet author="tudormalene (generated)" id="1513267683777-28">
<addForeignKeyConstraint baseColumnNames="certificate_signing_request" baseTableName="node_info" constraintName="FKOLO0DB56L1GS6AAY86TBNIXRH" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="request_id" referencedTableName="certificate_signing_request"/>
<addForeignKeyConstraint baseColumnNames="certificate_signing_request" baseTableName="node_info" constraintName="FK__node_info__certificate_signing_request" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="request_id" referencedTableName="certificate_signing_request"/>
</changeSet>
</databaseChangeLog>

View File

@ -59,13 +59,13 @@
<changeSet author="tudormalene (generated)" id="1511451595465-62">
<addForeignKeyConstraint baseColumnNames="node_info_id" baseTableName="node_link_nodeinfo_party"
constraintName="fk544l9wsec35ph7hxrtwfd2lws" deferrable="false"
constraintName="FK__node_link_nodeinfo_party__node_infos" deferrable="false"
initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
referencedColumnNames="node_info_id" referencedTableName="node_infos"/>
</changeSet>
<changeSet author="tudormalene (generated)" id="1511451595465-63">
<addForeignKeyConstraint baseColumnNames="node_info_id" baseTableName="node_info_hosts"
constraintName="fk5ie46htdrkftmwe6rpwrnp0mp" deferrable="false"
constraintName="FK__node_info_hosts__node_infos" deferrable="false"
initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
referencedColumnNames="node_info_id" referencedTableName="node_infos"/>
</changeSet>

View File

@ -206,7 +206,7 @@
</changeSet>
<changeSet author="tudormalene (generated)" id="1511451595465-61">
<addForeignKeyConstraint baseColumnNames="party_name" baseTableName="node_link_nodeinfo_party"
constraintName="fk1ua3h6nwwfji0mn23c5d1xx8e" deferrable="false"
constraintName="FK__node_link_nodeinfo_party__node_info_party_cert" deferrable="false"
initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
referencedColumnNames="party_name" referencedTableName="node_info_party_cert"/>
</changeSet>

View File

@ -125,14 +125,14 @@
<changeSet author="tudormalene (generated)" id="1511451595465-64">
<addForeignKeyConstraint baseColumnNames="output_index,transaction_id"
baseTableName="vault_fungible_states_parts"
constraintName="fkchmfeq1ldqnoq9idv9ogxauqm" deferrable="false"
constraintName="FK__vault_fungible_states_parts__vault_fungible_states" deferrable="false"
initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
referencedColumnNames="output_index,transaction_id"
referencedTableName="vault_fungible_states"/>
</changeSet>
<changeSet author="tudormalene (generated)" id="1511451595465-65">
<addForeignKeyConstraint baseColumnNames="output_index,transaction_id" baseTableName="vault_linear_states_parts"
constraintName="fkhafsv733d0bo9j1tg352koq3y" deferrable="false"
constraintName="FK__vault_linear_states_parts__vault_linear_states" deferrable="false"
initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION"
referencedColumnNames="output_index,transaction_id"
referencedTableName="vault_linear_states"/>