Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8accee07
authored
2015-03-18 16:41:11 -0400
by
Marty Penner
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Ensure the wp_sequencer is created as InnoDB
1 parent
09fa4bed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
com/Sequencer/Sequencer.php
com/Sequencer/Sequencer.php
View file @
8accee0
...
...
@@ -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);");
...
...
Please
register
or
sign in
to post a comment