Просмотр исходного кода

Revert "add comment"

This reverts commit ae1251fbf1fff8daf9868d67197d2e2632660077.
Shun Miyazawa 1 год назад
Родитель
Сommit
e8b4db07ca

+ 0 - 4
apps/app/src/migrations/20211227060705-revision-path-to-page-id-schema-migration--fixed-7549.js

@@ -18,8 +18,6 @@ module.exports = {
   async up(db, client) {
   async up(db, client) {
     mongoose.connect(getMongoUri(), mongoOptions);
     mongoose.connect(getMongoUri(), mongoOptions);
     const Page = getModelSafely('Page') || getPageModel();
     const Page = getModelSafely('Page') || getPageModel();
-
-    // Do not use models in /server/models/revision because of schema changes
     const Revision = await db.collection('revisions');
     const Revision = await db.collection('revisions');
 
 
     const pagesStream = await Page.find({ revision: { $ne: null } }, { _id: 1, path: 1 }).cursor({ batch_size: LIMIT });
     const pagesStream = await Page.find({ revision: { $ne: null } }, { _id: 1, path: 1 }).cursor({ batch_size: LIMIT });
@@ -71,8 +69,6 @@ module.exports = {
   async down(db, client) {
   async down(db, client) {
     mongoose.connect(getMongoUri(), mongoOptions);
     mongoose.connect(getMongoUri(), mongoOptions);
     const Page = getModelSafely('Page') || getPageModel();
     const Page = getModelSafely('Page') || getPageModel();
-
-    // Do not use models in /server/models/revision because of schema changes
     const Revision = await db.collection('revisions');
     const Revision = await db.collection('revisions');
 
 
     const pagesStream = await Page.find({ revision: { $ne: null } }, { _id: 1, path: 1 }).cursor({ batch_size: LIMIT });
     const pagesStream = await Page.find({ revision: { $ne: null } }, { _id: 1, path: 1 }).cursor({ batch_size: LIMIT });