🌱 幽境危战数据库操作

#157
This commit is contained in:
BTMuli
2025-07-01 16:21:13 +08:00
parent 8f4d3d2285
commit 1718b87adf
11 changed files with 754 additions and 86 deletions

View File

@@ -1,6 +1,6 @@
-- @file plugins/Sqlite/sql/createTable.sql
-- @brief sqlite数据库创建表语句
-- @since Beta v0.7.2
-- @since Beta v0.8.0
-- @brief 创建成就数据表
create table if not exists Achievements
@@ -47,27 +47,6 @@ create table if not exists GameAccount
primary key (uid, gameBiz, gameUid)
);
-- @brief 创建临时游戏账号数据表用于迁移数据
create table GameAccountTemp
(
uid text,
gameBiz text,
gameUid text,
isChosen boolean,
isOfficial boolean,
level integer,
nickname text,
region text,
regionName text,
updated text,
primary key (uid, gameBiz, gameUid)
);
--- @brief 迁移数据
insert into GameAccountTemp select * from GameAccount;
drop table GameAccount;
alter table GameAccountTemp rename to GameAccount;
-- @brief 创建深渊数据表
create table if not exists SpiralAbyss
(
@@ -107,6 +86,20 @@ create table if not exists RoleCombat
primary key (uid, id)
);
-- @brief 创建幽境危战数据表
create table if not exists HardChallenge
(
uid text,
id integer,
startTime text,
endTime text,
name text,
single text,
mp text,
updated text,
primary key (uid, id)
);
-- @brief 创建战绩数据表
create table if not exists UserRecord
(