mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-24 05:19:45 +08:00
@@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user