itizawa 6 лет назад
Родитель
Сommit
b0bd1a4567
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      src/migrations/20190619055421-adjust-page-grant.js

+ 14 - 0
src/migrations/20190619055421-adjust-page-grant.js

@@ -0,0 +1,14 @@
+module.exports = {
+  up(db) {
+    // TODO write your migration here. Return a Promise (and/or use async & await).
+    // See https://github.com/seppevs/migrate-mongo/#creating-a-new-migration-script
+    // Example:
+    // return db.collection('albums').updateOne({artist: 'The Beatles'}, {$set: {blacklisted: true}});
+  },
+
+  down(db) {
+    // TODO write the statements to rollback your migration (if possible)
+    // Example:
+    // return db.collection('albums').updateOne({artist: 'The Beatles'}, {$set: {blacklisted: false}});
+  },
+};