feat(migration): migration import path updates
Fixes the import issue
kotahi-server-1 | (node:25) Warning: Accessing non-existent property 'models' of module exports inside circular dependency
kotahi-server-1 | error: Error while running migrations: Cannot find module '../src/useTransaction'
kotahi-server-1 | Require stack:
kotahi-server-1 | - /home/node/app/_migrations-25D6Yu5KfAIz6W/1698750314-add-full-quality-converted-object-to-storedobjects.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/helpers/umzug.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/commands/migrate.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/commands/create-tables.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/index.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/cli/migrate.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/bin/pubsweet-migrate.js
kotahi-server-1 | error: Error: Cannot find module '../src/useTransaction'
kotahi-server-1 | Require stack:
kotahi-server-1 | - /home/node/app/_migrations-25D6Yu5KfAIz6W/1698750314-add-full-quality-converted-object-to-storedobjects.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/helpers/umzug.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/commands/migrate.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/commands/create-tables.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/index.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/cli/migrate.js
kotahi-server-1 | - /home/node/app/node_modules/pubsweet/bin/pubsweet-migrate.js
kotahi-server-1 | at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
kotahi-server-1 | at Function.Module._load (node:internal/modules/cjs/loader:841:27)
kotahi-server-1 | at Module.require (node:internal/modules/cjs/loader:1067:19)
kotahi-server-1 | at require (node:internal/modules/cjs/helpers:103:18)
kotahi-server-1 | at Object.<anonymous> (/home/node/app/_migrations-25D6Yu5KfAIz6W/1698750314-add-full-quality-converted-object-to-storedobjects.js:9:24)
kotahi-server-1 | at Module._compile (node:internal/modules/cjs/loader:1165:14)
kotahi-server-1 | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
kotahi-server-1 | at Module.load (node:internal/modules/cjs/loader:1043:32)
kotahi-server-1 | at Function.Module._load (node:internal/modules/cjs/loader:878:12)
kotahi-server-1 | at Module.require (node:internal/modules/cjs/loader:1067:19)
kotahi-server-1 | at require (node:internal/modules/cjs/helpers:103:18)
kotahi-server-1 | at Object.customResolver (/home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/helpers/umzug.js:57:16)
kotahi-server-1 | at Migration.migration (/home/node/app/node_modules/umzug/lib/migration.js:60:38)
kotahi-server-1 | at /home/node/app/node_modules/umzug/lib/migration.js:121:37
kotahi-server-1 | at Generator.next (<anonymous>)
kotahi-server-1 | at asyncGeneratorStep (/home/node/app/node_modules/umzug/lib/migration.js:9:103)
kotahi-server-1 | From previous event:
kotahi-server-1 | at /home/node/app/node_modules/umzug/lib/index.js:116:62
kotahi-server-1 | at processImmediate (node:internal/timers:466:21)
kotahi-server-1 | From previous event:
kotahi-server-1 | at /home/node/app/node_modules/umzug/lib/index.js:112:43
kotahi-server-1 | From previous event:
kotahi-server-1 | at Umzug.execute (/home/node/app/node_modules/umzug/lib/index.js:112:9)
kotahi-server-1 | at Umzug._run (/home/node/app/node_modules/umzug/lib/index.js:279:19)
kotahi-server-1 | at Umzug.<anonymous> (/home/node/app/node_modules/umzug/lib/index.js:307:21)
kotahi-server-1 | From previous event:
kotahi-server-1 | at Umzug._run (/home/node/app/node_modules/umzug/lib/index.js:306:10)
kotahi-server-1 | at Umzug.up (/home/node/app/node_modules/umzug/lib/index.js:198:17)
kotahi-server-1 | at migrate (/home/node/app/node_modules/pubsweet/node_modules/@pubsweet/db-manager/src/commands/migrate.js:9:17)
kotahi-server-1 | at async module.exports (/home/node/app/node_modules/pubsweet/cli/migrate.js:6:3)
kotahi-server-1 | + exec node_modules/.bin/nodemon startServer.js -- server -- config --ext js,graphql