Skip to content

Commit

Permalink
[fix] 新增bvid 唯一
Browse files Browse the repository at this point in the history
  • Loading branch information
runs committed Jan 1, 2023
1 parent 421d74f commit e61e838
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions database/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit e61e838

Please sign in to comment.