From e61e838c8d2e98269b7b94118cf61f78d117d506 Mon Sep 17 00:00:00 2001 From: runstp Date: Sun, 1 Jan 2023 19:07:02 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E6=96=B0=E5=A2=9Ebvid=20=E5=94=AF?= =?UTF-8?q?=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/init.sql | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/database/init.sql b/database/init.sql index 9dc258b..1762f56 100644 --- a/database/init.sql +++ b/database/init.sql @@ -5,14 +5,14 @@ create table bilbil_asoul_video bvid varchar(16) not null, aid int unsigned not null, name varchar(32) null, - mid bigint unsigned not null, - face varchar(255) not null, + mid bigint unsigned not null, + face varchar(255) not null, tid int unsigned not null, tname varchar(32) not null, copyright int unsigned not null, title varchar(128) not null, `desc` varchar(1024) not null, - pic varchar(255) not null, + pic varchar(255) not null, tag varchar(128) not null, pubdate int unsigned not null, duration varchar(64) not null, @@ -26,7 +26,9 @@ create table bilbil_asoul_video score bigint unsigned default '0' not null, status tinyint default 1 not null, created_at bigint unsigned not null, - updated_at bigint unsigned default '0' not null + updated_at bigint unsigned default '0' not null, + constraint bilbil_asoul_video_bvid_uindex + unique (bvid) ); create index bilbil_asoul_video_bvid_index