mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: bug fix
This commit is contained in:
1 parent
4daf8bac80
commit
753cacfe9c
4 files changed
+5
-5
No files matched your search
@@ -543,7 +543,7 @@ const scripts: UpgradeScript[] = [
|
||||
await RecordModel.coll.updateMany({}, { $unset: { hidden: '' } });
|
||||
await RecordModel.coll.updateMany({ 'contest.tid': { $exists: true } }, { $rename: { 'contest.tid': 'contest1' } });
|
||||
await RecordModel.coll.updateMany({ contest1: { $exists: true } }, { $rename: { contest1: 'contest' } });
|
||||
await RecordModel.coll.updateMany({ contest: { $exists: true } }, { $unset: { contest: '' } });
|
||||
await RecordModel.coll.updateMany({ contest: null }, { $unset: { contest: '' } });
|
||||
return true;
|
||||
},
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user