1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee

small update

This commit is contained in:
程序员小墨 2022-10-17 22:28:33 +08:00
parent ade6e4f9e9
commit 95065be3d7
2 changed files with 2 additions and 2 deletions

View File

@ -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 '歌曲热度',

View File

@ -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);