Hi i've added a new table in DB & I have this message :
Désolé, une erreur inattendue s'est produite...
Error while processing Database request (2.boardgamearena.com 02/06 10:34:20)
i've added this in DB MODEL
and this in GAME.PHP
Did I write anything wrong ?
Désolé, une erreur inattendue s'est produite...
Error while processing Database request (2.boardgamearena.com 02/06 10:34:20)
i've added this in DB MODEL
Code: Select all
CREATE TABLE `moves` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`x` mediumint(9) NOT NULL,
`y` mediumint(9) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Code: Select all
if( $from_version <= 2006020000 )
{
$sql = "CREATE TABLE IF NOT EXISTS DBPREFIX_moves (
id smallint(5) unsigned NOT NULL AUTO_INCREMENT,
x mediumint(9) NOT NULL,
` y mediumint(9) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1";
self::applyDbUpgradeToAllDB( $sql );
}