@@ -149,6 +149,8 @@ function migrateSaveRecords(db: Database.Database): void {
{ col : 'request_url' , def : 'TEXT' } ,
{ col : 'request_url' , def : 'TEXT' } ,
{ col : 'ip_location' , def : 'TEXT' } ,
{ col : 'ip_location' , def : 'TEXT' } ,
{ col : 'original_folder_name' , def : 'TEXT' } ,
{ col : 'original_folder_name' , def : 'TEXT' } ,
{ col : 'config_id' , def : 'INTEGER' } ,
{ col : 'promotion_account' , def : 'TEXT' } ,
] ;
] ;
for ( const { col , def } of newCols ) {
for ( const { col , def } of newCols ) {
try {
try {
@@ -289,6 +291,7 @@ function seedSystemConfigs(db: Database.Database): void {
{ key : 'search_proxy_url' , value : '' , description : '搜索代理地址 (如 http://127.0.0.1:7890)' } ,
{ key : 'search_proxy_url' , value : '' , description : '搜索代理地址 (如 http://127.0.0.1:7890)' } ,
{ key : 'search_strategy' , value : 'wait_all' , description : '搜索结果展示方式: wait_all=等待全部后展示, stream_channel=频道逐步展示' } ,
{ key : 'search_strategy' , value : 'wait_all' , description : '搜索结果展示方式: wait_all=等待全部后展示, stream_channel=频道逐步展示' } ,
{ key : 'link_validation_enabled' , value : 'true' , description : '资源链接有效性检测开关( true/false) ' } ,
{ key : 'link_validation_enabled' , value : 'true' , description : '资源链接有效性检测开关( true/false) ' } ,
{ key : 'link_invalid_keywords' , value : '' , description : '链接失效关键词(一行一条,命中的链接判定为失效)' } ,
{ key : 'cloud_type_quark_enabled' , value : 'true' , description : '夸克网盘' } ,
{ key : 'cloud_type_quark_enabled' , value : 'true' , description : '夸克网盘' } ,
{ key : 'cloud_type_baidu_enabled' , value : 'true' , description : '百度网盘' } ,
{ key : 'cloud_type_baidu_enabled' , value : 'true' , description : '百度网盘' } ,
{ key : 'cloud_type_aliyun_enabled' , value : 'true' , description : '阿里云盘' } ,
{ key : 'cloud_type_aliyun_enabled' , value : 'true' , description : '阿里云盘' } ,