Add post_id on video tables

parent 994df8aa
......@@ -166,6 +166,8 @@ if(!class_exists('SexHackMe_Plugin')) {
$sql_query = "CREATE TABLE {$wpdb->prefix}{$this->prefix}videos (
id bigint(20) AUTO_INCREMENT NOT NULL,
user_id bigint(20) NOT NULL,
post_id biting(20) NOT NULL,
product_id bigint(20) NOT NULL DEFAULT '0',
status ENUM('creating', 'uploading', 'queue', 'processing', 'ready','published','error') NOT NULL DEFAULT 'creating',
private ENUM('Y', 'N') NOT NULL DEFAULT 'N',
visible ENUM('Y', 'N') NOT NULL DEFAULT 'Y',
......@@ -173,7 +175,6 @@ if(!class_exists('SexHackMe_Plugin')) {
description varchar(1024) NOT NULL,
uploaded datetime DEFAULT NULL,
slug varchar(256) NOT NULL,
product_id bigint(20) NOT NULL DEFAULT '0',
price float(10) NOT NULL DEFAULT '0',
video_type ENUM('FLAT','VR') NOT NULL DEFAULT 'FLAT',
vr_projection ENUM('VR180_LR', 'VR360_LR') NOT NULL DEFAULT 'VR180_LR',
......@@ -204,6 +205,7 @@ if(!class_exists('SexHackMe_Plugin')) {
sells bigint(32) NOT NULL DEFAULT '0',
PRIMARY KEY (id),
KEY user_id (user_id),
KEY post_id (post_id),
KEY slug (slug),
KEY price (price),
KEY video_type (video_type),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment