mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-17 04:13:17 +08:00
🔥 移除无用sql
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
-- @file plugins/Sqlite/sql/createTrigger.sql
|
||||
-- @brief 创建触发器
|
||||
-- @since Beta v0.6.0
|
||||
|
||||
-- @brief 重新创建成就表插入触发器
|
||||
drop trigger if exists insertAchievement;
|
||||
|
||||
-- @brief 重新创建成就表更新触发器
|
||||
drop trigger if exists updateAchievement;
|
||||
@@ -1,12 +1,12 @@
|
||||
/**
|
||||
* @file plugins/Sqlite/sql/initData.ts
|
||||
* @description Sqlite 初始化数据 sql 语句
|
||||
* @since Beta v0.6.0
|
||||
* @since Beta v0.7.2
|
||||
*/
|
||||
|
||||
import { app } from "@tauri-apps/api";
|
||||
|
||||
import initTableSql from "./initTable.js";
|
||||
import createTable from "./createTable.sql?raw";
|
||||
|
||||
import { getBuildTime } from "@/utils/TGBuild.js";
|
||||
|
||||
@@ -41,12 +41,12 @@ async function initAppData(): Promise<string[]> {
|
||||
|
||||
/**
|
||||
* @description 初始化数据
|
||||
* @since Beta v0.4.5
|
||||
* @since Beta v0.7.2
|
||||
* @returns {Promise<string[]>} sql
|
||||
*/
|
||||
async function initDataSql(): Promise<string[]> {
|
||||
const sqlRes: string[] = [];
|
||||
sqlRes.push(...initTableSql());
|
||||
sqlRes.push(createTable);
|
||||
sqlRes.push(...(await initAppData()));
|
||||
return sqlRes;
|
||||
}
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
/**
|
||||
* @file plugins Sqlite sql initTable.ts
|
||||
* @description Sqlite 初始化数据 sql 语句
|
||||
* @author BTMuli <bt-muli@outlook.com>
|
||||
* @since Alpha v0.2.0
|
||||
*/
|
||||
|
||||
// data
|
||||
import createTable from "./createTable.sql?raw";
|
||||
import createTrigger from "./createTrigger.sql?raw";
|
||||
|
||||
/**
|
||||
* @description 初始化数据库表
|
||||
* @since Alpha v0.2.0
|
||||
* @returns {string[]} sql
|
||||
*/
|
||||
function initTableSql(): string[] {
|
||||
return [createTable, createTrigger];
|
||||
}
|
||||
|
||||
export default initTableSql;
|
||||
Reference in New Issue
Block a user