fix(electron): upgrade db file (#3984)

This commit is contained in:
Alex Yang
2023-08-28 15:38:40 -05:00
committed by GitHub
parent d62935935f
commit d9cb45f466
9 changed files with 177 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
import assert from 'node:assert';
import { test } from 'node:test';
import { fileURLToPath } from 'node:url';
import { SqliteConnection, ValidationResult } from '../index';
test('db', { concurrency: false }, async t => {
await t.test('validate', async () => {
const path = fileURLToPath(
new URL('./fixtures/test01.affine', import.meta.url)
);
const result = await SqliteConnection.validate(path);
assert.equal(result, ValidationResult.MissingVersionColumn);
});
});

Binary file not shown.