dropUnmappedColumnsStatements

fun dropUnmappedColumnsStatements(vararg tables: Table, withLogs: Boolean = true): List<String>

Returns the SQL statements that drop any columns that exist in the database but are not defined in tables.

By default, a description for each intermediate step, as well as its execution time, is logged at the INFO level. This can be disabled by setting withLogs to false.

Note: Some databases, like SQLite, only support ALTER TABLE DROP COLUMN syntax in very restricted cases, which may cause unexpected behavior when dropping some unmapped columns. For more information, refer to the relevant documentation. For SQLite, see ALTER TABLE restrictions.