mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 17:28:31 +03:00
feat: add migration script
This commit is contained in:
@@ -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: [],
|
||||
},
|
||||
}
|
||||
);
|
||||
})();
|
||||
}
|
||||
Reference in New Issue
Block a user