CREATE TABLE uhc
(
id_uhc int not null AUTO_INCREMENT,
maxplayers smallint not null DEFAULT 80,
tostimc bit(1) not null DEFAULT 1,
nether bit(1) not null DEFAULT 0,
host_name varchar(20) not null,
primary key (id_uhc) );
1005 - Can't create table 'tostimc.uhc' (errno: 150)
The only thing I have is a primary key which in my opinion can't be wrong. I did have the table before with a foreign key in it but I dropped that one. (SHOW TABLES doesnt show the table neither)
REPAIR TABLE uhc:
Table 'tostimc.uhc' doesn't exist
DROP TABLE uhc:
1051 - Unknown table 'uhc'
The query works fine on a fresh database it just doesnt work on the production database we have, worth mentioning: We had the table with a foreign key in it but we dropped that one... I just cant find out what I'm doing wrong, could someone please help me, thanks!