mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 13:56:15 +02:00
Merge branch 'standalone' of github.com:TriliumNext/Trilium into standalone
This commit is contained in:
@@ -77,9 +77,9 @@ async function migrate() {
|
||||
}
|
||||
|
||||
async function prepareMigrations(currentDbVersion: number): Promise<MigrationInfo[]> {
|
||||
MIGRATIONS.sort((a, b) => a.version - b.version);
|
||||
const sortedMigrations = [...MIGRATIONS].sort((a, b) => a.version - b.version);
|
||||
const migrations: MigrationInfo[] = [];
|
||||
for (const migration of MIGRATIONS) {
|
||||
for (const migration of sortedMigrations) {
|
||||
const dbVersion = migration.version;
|
||||
if (dbVersion > currentDbVersion) {
|
||||
if ("sql" in migration) {
|
||||
|
||||
Reference in New Issue
Block a user