如何解决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 举报,一经查实,本站将立刻删除。