1. Split logic in `packages/common/infra/src/blocksuite/index.ts` to multiple single files 2. Move migration logic from setup to upgrade module, to prevent auto migration problems and loading problem
18 lines
500 B
TypeScript
18 lines
500 B
TypeScript
export * from './initialization';
|
|
export * from './migration/blob';
|
|
export { migratePages as forceUpgradePages } from './migration/blocksuite'; // campatible with electron
|
|
export * from './migration/fixing';
|
|
export { migrateToSubdoc } from './migration/subdoc';
|
|
export * from './migration/workspace';
|
|
|
|
/**
|
|
* @deprecated
|
|
* Use workspace meta data to determine the workspace version.
|
|
*/
|
|
export enum WorkspaceVersion {
|
|
// v1 is treated as undefined
|
|
SubDoc = 2,
|
|
DatabaseV3 = 3,
|
|
Surface = 4,
|
|
}
|