代码拉取完成,页面将自动刷新
<?php
/**
* create by 大柱子
* DATE 2020/3/22
* TIME 16:19
* EMAIL 842939018@qq.com
*/
$video_type = tablename('wechat_video_tencent_video_type');
$video_list = tablename('wechat_video_tencent_video_list');
$sql = <<<ENT
drop table if exists $video_type;
create table $video_type(
id tinyint unsigned not null auto_increment primary key comment '分类id',
title varchar(255) not null default '' comment '分类标题',
sort tinyint unsigned not null default 0 comment '排序',
status tinyint unsigned not null default 0 comment '状态',
create_time timestamp default '00-00-00' comment '创建时间'
)engine myisam comment '视频分类';
drop table if exists $video_list;
create table $video_list(
id tinyint unsigned not null auto_increment primary key,
vid varchar(15) not null default '' comment 'vid',
type_id tinyint unsigned not null default 0 comment '分类id',
title varchar(255) not null default '' comment '视频标题',
img varchar(255) not null default '' comment '封面',
url varchar(255) not null default '' comment '原本的url',
time int unsigned not null default 0 comment '时间长度',
date varchar(255) not null default '' comment '上传日期',
author varchar(255) not null default '' comment '作者',
`desc` varchar(255) not null default '' comment '描述',
is_shu tinyint unsigned not null default 0 comment '是否竖屏',
is_hot tinyint unsigned not null default 0 comment '是否最热',
is_new tinyint unsigned not null default 0 comment '是否最新',
is_well tinyint unsigned not null default 0 comment '是否推荐',
sort tinyint unsigned not null default 0 comment '排序',
status tinyint unsigned not null default 0 comment '状态',
create_time timestamp default '00-00-00' comment '创建时间'
)engine myisam comment '视频列表';
ENT;
$result = pdo_run($sql);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。