Rxdb迁移未运行

问题描述

我有一个版本0的架构,并带有4k文档。 将版本更改为1,具有以下策略:

 PASS  src/stackoverflow/63797764/index.test.ts (10.906s)
  63797764
    ✓ invokes its initialisation function during the import of ./initialiser (21ms)

  console.log src/stackoverflow/63797764/index.test.ts:6
    mocked classA initialise

  console.log src/stackoverflow/63797764/index.test.ts:7
    mocked classB initialise

Test Suites: 1 passed,1 total
Tests:       1 passed,1 total
Snapshots:   0 total
Time:        12.367s

重新加载页面,不打印任何内容,调试器未停止。 我尝试遵循 autoMigrate: true,migrationStrategies: { 1: (r: any) => { debugger; console.log(r); return r; } },中的代码,看来data-migration.js返回了一个空批。 是什么原因造成的? 我尝试手动运行迁移,但结果相同。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)