|
|
@@ -0,0 +1,22 @@
|
|
|
+const Helpers = require('./lib/helpers')
|
|
|
+
|
|
|
+exports.tags = ['saas']
|
|
|
+
|
|
|
+const indexes = [
|
|
|
+ {
|
|
|
+ key: {
|
|
|
+ 'overleaf.history.display': 1,
|
|
|
+ },
|
|
|
+ name: 'overleaf.history.display_1',
|
|
|
+ },
|
|
|
+]
|
|
|
+
|
|
|
+exports.migrate = async client => {
|
|
|
+ const { db } = client
|
|
|
+ await Helpers.addIndexesToCollection(db.projects, indexes)
|
|
|
+}
|
|
|
+
|
|
|
+exports.rollback = async client => {
|
|
|
+ const { db } = client
|
|
|
+ await Helpers.dropIndexesFromCollection(db.projects, indexes)
|
|
|
+}
|