feat(database): add platform-agnostic schema migration system (#3485)

This commit is contained in:
Huang Xin
2026-03-06 20:07:26 +08:00
committed by GitHub
parent 97cab2d70b
commit 54bc1514df
15 changed files with 723 additions and 8 deletions
@@ -4,6 +4,7 @@ import { DatabaseService } from '@/types/database';
import { baseTests } from './suites/base-tests';
import { ftsTests } from './suites/fts-tests';
import { vectorTests } from './suites/vector-tests';
import { migrationTests } from './suites/migration-tests';
/**
* Integration tests using a real in-memory SQLite database via @tursodatabase/database.
@@ -33,4 +34,8 @@ describe('NodeDatabaseService (real in-memory SQLite)', () => {
describe('Vector Search', () => {
vectorTests(() => db);
});
describe('Migrations', () => {
migrationTests(() => db);
});
});