Hi. I'm having problem with the `SchemaUtils.creat...
# exposed
w
Hi. I'm having problem with the
SchemaUtils.createMissingTablesAndColumns
function. If I run this:
SchemaUtils.createMissingTablesAndColumns(Clans)
, I get this exception:
[21:57:03 WARN]: [Server thread] INFO Exposed - Transaction attempt #1 failed: (conn=140) Multiple primary key defined. Statement: sql : 'ALTER TABLE Clans MODIFY COLUMN id INT AUTO_INCREMENT PRIMARY KEY', parameters : []
. This is my table:
Copy code
object Clans: IntIdTable() {
    val name = varchar("name", MAX_VARCHAR_LENGTH).uniqueIndex()
    val owner = reference("owner", Players).uniqueIndex()
    val open = bool("open").default(false)
    val timestamp = timestamp()
}
Just noticed I was running an outdated version though, is this fixed in the newer version? I'll test it in a few minutes when my app has updated.