Back to Exposed

checkExcessiveForeignKeyConstraints

docs/api/exposed-jdbc/org.jetbrains.exposed.v1.jdbc/-schema-utils/check-excessive-foreign-key-constraints.html

1.2.0941 B
Original Source

checkExcessiveForeignKeyConstraints

fun checkExcessiveForeignKeyConstraints(vararg tables: Table, withLogs: Boolean): List<ForeignKeyConstraint>

Checks all tables for any that have more than one defined foreign key constraint and logs the findings. If found, this function also logs the SQL statements that can be used to drop these foreign key constraints.

Return

List of foreign key constraints that are excessive and can be dropped.

Generated by Dokka © 2026 Copyright