small update
This commit is contained in:
parent
ade6e4f9e9
commit
95065be3d7
@ -2,7 +2,7 @@ CREATE DATABASE `neteaseMusic` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_
|
||||
USE `neteaseMusic`;
|
||||
CREATE TABLE `song` (
|
||||
`song_id` int(10) unsigned NOT NULL COMMENT '歌曲id',
|
||||
`title` varchar(200)NOT NULL COMMENT '歌曲名',
|
||||
`title` varchar(500)NOT NULL COMMENT '歌曲名',
|
||||
`type` tinyint(4) NOT NULL COMMENT ' 0: 一般类型 1: 通过云盘上传的音乐,网易云不存在公开对应 2: 通过云盘上传的音乐,网易云存在公开对应',
|
||||
`alias` json DEFAULT NULL COMMENT '歌曲别名(JSON格式数组)',
|
||||
`pop` float DEFAULT NULL COMMENT '歌曲热度',
|
||||
|
@ -22,7 +22,7 @@ async function fetchAll({ args = {} }) {
|
||||
${args.limit ? `LIMIT ${args.limit}` : ''}
|
||||
`;
|
||||
// 更新现有数据
|
||||
sql = `SELECT song_id FROM song WHERE data_version = 1`;
|
||||
sql = `SELECT song_id FROM song WHERE ${whereClause} AND data_version = 1`;
|
||||
// 测试用
|
||||
// sql = `SELECT song_id FROM song_artist_relation group by song_id limit 10`;
|
||||
console.log(sql);
|
||||
|
Loading…
Reference in New Issue
Block a user