Skip to content

Commit

Permalink
feat: migration des derniere_classe 1 -> 01
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlr committed Jul 1, 2024
1 parent 299ccb8 commit 1527487
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/src/db/migrations/20240628000000-deca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ export const up = async (db: Db, _client: MongoClient) => {
},
},
]);

await db.collection("deca").updateMany({ "alternant.derniere_classe": "1" }, [
{
$set: {
"alternant.derniere_classe": "01",
},
},
]);
};

export const down = async (_db: Db, _client: MongoClient) => {};

0 comments on commit 1527487

Please sign in to comment.