"use strict";
module.exports = {
    async up (db, client) {
        const session = client.startSession();
        try {
            await session.withTransaction(async ()=>{
                await db.collection("users").update({}, {
                    $unset: {
                        name: 1
                    }
                }, {
                    multi: true
                });
            });
        } finally{
            await session.endSession();
        }
    },
    async down (db, client) {
        await db.collection("printers").update({}, {
            $set: {
                name: "default"
            }
        }, {
            multi: true
        });
    }
};

//# sourceMappingURL=20230716065316-user-remove-name.js.map