8accee07 by Marty Penner

Ensure the wp_sequencer is created as InnoDB

1 parent 09fa4bed
......@@ -76,15 +76,15 @@ class Actions {
public static function init() {
global $wpdb;
$create_table_statement = "
CREATE TABLE IF NOT EXISTS `".$wpdb->prefix."sequencer` (
`prefix` varchar(3) NOT NULL,
CREATE TABLE IF NOT EXISTS `wp_sequencer` (
`prefix` varchar(3) CHARACTER SET latin1 NOT NULL,
`start` int(7) unsigned zerofill NOT NULL DEFAULT '0000000',
`end` int(7) unsigned zerofill NOT NULL DEFAULT '9999999',
`current` int(7) unsigned zerofill DEFAULT '0000000',
`last_used` int(16) NOT NULL DEFAULT '0',
PRIMARY KEY (`prefix`),
UNIQUE KEY `prefix` (`prefix`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
";
$wpdb->query($create_table_statement);
//$wpdb->query("INSERT INTO `wp_sequencer` (`prefix`, `start`, `end`, `current`, `last_used`) VALUES ('EVT', 0000000, 9999999, 0000000, 0),('NTC', 0000000, 9999999, 0000000, 0),('CEH', 0000000, 9999999, 0000000, 0);");
......