From 01a15466395693a2e047c08bc3f7c97f33caf037 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Thu, 1 Sep 2022 09:16:48 +0200 Subject: [PATCH] [migration] disable `betaProgram` in CE/SP (#9418) GitOrigin-RevId: aee509973d1ffaaab8dcac31667154f36c815a2c --- .../20220826104236_disable_alpha_beta_program.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 services/web/migrations/20220826104236_disable_alpha_beta_program.js diff --git a/services/web/migrations/20220826104236_disable_alpha_beta_program.js b/services/web/migrations/20220826104236_disable_alpha_beta_program.js new file mode 100644 index 0000000000..db8039f339 --- /dev/null +++ b/services/web/migrations/20220826104236_disable_alpha_beta_program.js @@ -0,0 +1,11 @@ +exports.tags = ['server-ce', 'server-pro'] + +exports.migrate = async client => { + const { db } = client + await db.users.updateMany( + {}, + { $set: { alphaProgram: false, betaProgram: false } } + ) +} + +exports.rollback = async () => {}