Updated webhook database schema

Allow default dates to '0000-00-00 00:00:00' and failure_count to '0'
This commit is contained in:
Claudio Sanches 2017-08-16 21:48:09 -03:00
parent 256ad31130
commit 1a3a2c0658
1 changed files with 5 additions and 5 deletions

View File

@ -636,12 +636,12 @@ CREATE TABLE {$wpdb->prefix}woocommerce_webhooks (
delivery_url text NOT NULL, delivery_url text NOT NULL,
secret text NOT NULL, secret text NOT NULL,
topic varchar(200) NOT NULL, topic varchar(200) NOT NULL,
date_created datetime NULL default null, date_created datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
date_created_gmt datetime NULL default null, date_created_gmt datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
date_modified datetime NULL default null, date_modified datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
date_modified_gmt datetime NULL default null, date_modified_gmt datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
api_version smallint(4) NOT NULL, api_version smallint(4) NOT NULL,
failure_count smallint(10) NOT NULL, failure_count smallint(10) NOT NULL DEFAULT '0',
pending_delivery tinyint(1) NOT NULL DEFAULT '0', pending_delivery tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (webhook_id), PRIMARY KEY (webhook_id),
KEY user_id (user_id) KEY user_id (user_id)