Webhook database schema

This commit is contained in:
Claudio Sanches 2017-08-16 15:37:22 -03:00
parent 88e0138be4
commit e8defa48dc
1 changed files with 18 additions and 0 deletions

View File

@ -627,6 +627,24 @@ CREATE TABLE {$wpdb->prefix}woocommerce_log (
context longtext NULL, context longtext NULL,
PRIMARY KEY (log_id), PRIMARY KEY (log_id),
KEY level (level) KEY level (level)
) $collate;
CREATE TABLE {$wpdb->prefix}woocommerce_webhooks (
webhook_id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
status varchar(200) NOT NULL,
name text NOT NULL,
user_id BIGINT UNSIGNED NOT NULL,
delivery_url text NOT NULL,
secret text NOT NULL,
topic varchar(200) NOT NULL,
date_created datetime NULL default null,
date_created_gmt datetime NULL default null,
date_modified datetime NULL default null,
date_modified_gmt datetime NULL default null,
api_version smallint(4) NOT NULL,
failure_count smallint(10) NOT NULL,
pending_delivery tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (webhook_id),
KEY user_id (user_id)
) $collate; ) $collate;
"; ";