override fun dropStatement()

in exposed-core/src/main/kotlin/org/jetbrains/exposed/v1/core/Table.kt [1764:1782]


    override fun dropStatement(): List<String> {
        @OptIn(InternalApi::class)
        val dropTable = buildString {
            append("DROP TABLE ")
            if (currentDialect.supportsIfNotExists) {
                append("IF EXISTS ")
            }
            append(currentTransaction().identity(this@Table))
            if (currentDialectIfAvailable is OracleDialect) {
                append(" CASCADE CONSTRAINTS")
            } else if (currentDialectIfAvailable is PostgreSQLDialect && TableUtils.checkCycle(this@Table)) {
                append(" CASCADE")
            }
        }

        val dropSequence = autoIncColumn?.autoIncColumnType?.sequence?.dropStatement().orEmpty()

        return listOf(dropTable) + dropSequence
    }