feat: add migration script

This commit is contained in:
zkldi
2022-04-21 16:10:47 +01:00
parent 4c4288aeb3
commit f8b618c536
@@ -0,0 +1,15 @@
import db from "external/mongo/db";
if (require.main === module) {
(async () => {
// give everyone empty rivals.
await db["game-settings"].update(
{},
{
$set: {
rivals: [],
},
}
);
})();
}