Skip to content

Commit 826d602

Browse files
committed
chore: remove unnecessary migration
1 parent 77e101e commit 826d602

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

meteor/server/migration/X_X_X.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -310,43 +310,6 @@ export const addSteps = addMigrationSteps(CURRENT_SYSTEM_VERSION, [
310310
}
311311
},
312312
},
313-
314-
{
315-
id: `add studio settings allowHold & allowPieceDirectPlay`,
316-
canBeRunAutomatically: true,
317-
validate: async () => {
318-
const studios = await Studios.findFetchAsync({
319-
$or: [
320-
{ 'settings.allowHold': { $exists: false } },
321-
{ 'settings.allowPieceDirectPlay': { $exists: false } },
322-
],
323-
})
324-
325-
if (studios.length > 0) {
326-
return 'studios must have settings.allowHold and settings.allowPieceDirectPlay defined'
327-
}
328-
329-
return false
330-
},
331-
migrate: async () => {
332-
const studios = await Studios.findFetchAsync({
333-
$or: [
334-
{ 'settings.allowHold': { $exists: false } },
335-
{ 'settings.allowPieceDirectPlay': { $exists: false } },
336-
],
337-
})
338-
339-
for (const studio of studios) {
340-
// Populate the settings to be backwards compatible
341-
await Studios.updateAsync(studio._id, {
342-
$set: {
343-
'settings.allowHold': true,
344-
'settings.allowPieceDirectPlay': true,
345-
},
346-
})
347-
}
348-
},
349-
},
350313
])
351314

352315
interface PartialOldICoreSystem {

0 commit comments

Comments
 (0)