wouterdoeland
02/23/2018, 8:20 AMCaused by: java.sql.SQLException: Multiple primary key defined
Query is: ALTER TABLE Clans MODIFY COLUMN id INT AUTO_INCREMENT PRIMARY KEY
Does anyone know why this is happening? This happens everytime I run SchemaUtils.createMissingTablesAndColumns(Clans)
with Clans or with any other table.tapac
02/23/2018, 4:52 PMwouterdoeland
02/24/2018, 10:16 AMobject 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()
}
tapac
02/24/2018, 6:42 PM