Parcourir la source

Add migration to drop docHistoryIndex

GitOrigin-RevId: 859b610313135338b6e6b58173b8980b057dc2a9
Andrew Rumble il y a 9 mois
Parent
commit
f306e1325e

+ 17 - 0
tools/migrations/20251110120830_drop_docHistoryIndex_collection.mjs

@@ -0,0 +1,17 @@
+import Helpers from './lib/helpers.mjs'
+
+const tags = ['saas']
+
+const migrate = async () => {
+  await Helpers.dropCollection('docHistoryIndex')
+}
+
+const rollback = async () => {
+  // Can't really do anything here
+}
+
+export default {
+  tags,
+  migrate,
+  rollback,
+}