mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
database upgrade fixes
This commit is contained in:
@@ -885,7 +885,6 @@ export const useAuthStore = defineStore('Auth', () => {
|
||||
await database.initUserTables(userStore.currentUser.id);
|
||||
watchState.isLoggedIn = true;
|
||||
AppApi.CheckGameRunning(); // restore state from hot-reload
|
||||
vrcxStore.updateDatabaseVersion();
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
+2
-1
@@ -103,6 +103,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
||||
'VRCX_databaseVersion',
|
||||
0
|
||||
);
|
||||
updateDatabaseVersion();
|
||||
|
||||
clearVRCXCacheFrequency.value = await configRepository.getInt(
|
||||
'VRCX_clearVRCXCacheFrequency',
|
||||
@@ -193,7 +194,7 @@ export const useVrcxStore = defineStore('Vrcx', () => {
|
||||
|
||||
async function updateDatabaseVersion() {
|
||||
// requires dbVars.userPrefix to be already set
|
||||
const databaseVersion = 12;
|
||||
const databaseVersion = 13;
|
||||
let msgBox;
|
||||
if (state.databaseVersion < databaseVersion) {
|
||||
if (state.databaseVersion) {
|
||||
|
||||
Reference in New Issue
Block a user