But I have an issue: ``` [21:42:06 WARN]: 0 [Serv...
# exposed
w
But I have an issue:
Copy code
[21:42:06 WARN]: 0 [Server thread] INFO Exposed - Transaction attempt #0 failed: Can't create table `server_spigot`.`ItemRewards` (errno: 150 "Foreign key constraint is incorrectly formed"). Statement: com.mysql.jdbc.JDBC42PreparedStatement@4e31c8e4: CREATE TABLE IF NOT EXISTS ItemRewards (id INT AUTO_INCREMENT PRIMARY KEY, pending_item_reward INT NOT NULL, item VARCHAR(191) NOT NULL, amount INT DEFAULT 64 NOT NULL,  FOREIGN KEY (pending_item_reward) REFERENCES PendingItemRewardRewards(id) ON DELETE RESTRICT)

[21:42:06 WARN]: java.sql.SQLException: Can't create table `server_spigot`.`ItemRewards` (errno: 150 "Foreign key constraint is incorrectly formed")
I constantly get this exception. How do I fix this or what could be the issue, I'm using the DAO.