-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple Table with schema fails when using SchemaUtils.createMissingTablesAndColumns #1661
Comments
Hi @BlackHornet, |
I think I managed to reproduce that with 0.41.1 @Test
fun `createMissingTablesAndColumns should work on schema prefixed tables`() {
val schemaName = "my_schema"
val testTable = object : LongIdTable("$schemaName.test_table") {
}
withTables(excludeSettings = listOf(TestDB.H2_MYSQL)) {
SchemaUtils.createSchema(Schema(schemaName))
SchemaUtils.create(testTable)
SchemaUtils.createMissingTablesAndColumns(testTable)
assertTrue(testTable.exists())
SchemaUtils.drop(testTable)
}
} Getting
Will see if I'm able to fix that. |
Any estimated time that fix could be released :D ? |
@AlexeySoshin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Whenever I try to use a schema it fails with a schema table, when I am going to initialize with SchemaUtils.createMissingTablesAndColumns
DEBUG Exposed - CREATE TABLE IF NOT EXISTS auth.test (id BIGSERIAL PRIMARY KEY)
DEBUG Exposed - ALTER TABLE auth.test ADD id BIGSERIAL PRIMARY KEY
WARN Exposed - Transaction attempt #0 failed: java.sql.BatchUpdateException: Batch entry 0 ALTER TABLE auth.test ADD id BIGSERIAL PRIMARY KEY was aborted: ERROR: column "id" of relation "test" already exists Call getNextException to see other errors in the batch.. Statement(s): ALTER TABLE auth.test ADD id BIGSERIAL PRIMARY KEY
With that I am not able to use any database schema
The text was updated successfully, but these errors were encountered: