Skip to content

Commit

Permalink
Database version 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Jan 25, 2020
1 parent 4313f7e commit 6bbf38c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ function create_tables() {
`schedule` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `status` (`status`)
KEY `status` (`status`),
KEY `site` (`site`),
KEY `hook_args` (`hook`, `args`(50)),
KEY `nextrun` (`nextrun`),
) ENGINE=InnoDB {$charset_collate};\n";

// TODO: check return value
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace HM\Cavalcade\Plugin;

const DATE_FORMAT = 'Y-m-d H:i:s';
const DATABASE_VERSION = 2;
const DATABASE_VERSION = 3;

require __DIR__ . '/inc/namespace.php';
require __DIR__ . '/inc/class-job.php';
Expand Down

0 comments on commit 6bbf38c

Please sign in to comment.