mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-31 17:19:56 +08:00
refactor(y-indexeddb): move migrate function separate (#2086)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { DBSchema, IDBPDatabase } from 'idb/build/entry';
|
||||
|
||||
export const dbVersion = 1;
|
||||
export const DEFAULT_DB_NAME = 'affine-local' as const;
|
||||
export const DEFAULT_DB_NAME = 'affine-local';
|
||||
|
||||
export function upgradeDB(db: IDBPDatabase<BlockSuiteBinaryDB>) {
|
||||
db.createObjectStore('workspace', { keyPath: 'id' });
|
||||
|
||||
Reference in New Issue
Block a user