Taichi Masuyama 4 лет назад
Родитель
Сommit
d8f0e6073d

+ 1 - 1
packages/app/src/server/service/config-loader.ts

@@ -176,7 +176,7 @@ const ENV_VAR_NAME_TO_CONFIG_INFO = {
     ns:      'crowi',
     key:     'app:v5PathIndexStatus',
     type:    ValueType.STRING,
-    default: 'processable',
+    default: 'done',
   },
   IS_V5_COMPATIBLE: {
     ns:      'crowi',

+ 1 - 2
packages/app/src/server/service/page.js

@@ -879,11 +879,10 @@ class PageService {
 
   async v5InitialMigration(grant) {
     // const socket = this.crowi.socketIoService.getAdminSocket();
-    const Page = this.crowi.model('Page');
     const status = this.crowi.configManager.getConfig('crowi', 'app:v5PathIndexStatus');
 
     // drop unique index first
-    if (status === 'processable') {
+    if (status === 'processable' || status == null) {
       await this._setV5PathIndexStatus('processing');
       try {
         await this._v5NormalizeIndex();