Hi all - I am getting this error running the sales channels migration script
node ./node_modules/@medusajs/medusa/dist/scripts/sales-channels-migration.js
to upgrade medusa
I put the TYPEORM env variables as stated in the upgrade guide. It seems Heroku postgres refuses the connection because it's not encrypted.
Any idea how to go through that ?
error: no pg_hba.conf entry for host "XXXX", user "XXXXX", database "XXXXXX", no encryption at Parser.parseErrorMessage (/tmp/build_90d8f339/node_modules/pg-protocol/dist/parser.js:287:98) at Parser.handlePacket (/tmp/build_90d8f339/node_modules/pg-protocol/dist/parser.js:126:29) at Parser.parse (/tmp/build_90d8f339/node_modules/pg-protocol/dist/parser.js:39:38) at Socket.<anonymous> (/tmp/build_90d8f339/node_modules/pg-protocol/dist/index.js:11:42) at Socket.emit (node:events:513:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23) { length: 174, severity: 'FATAL', code: '28000', detail: undefined, hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: undefined, table: undefined, column: undefined, dataType: undefined, constraint: undefined, file: 'auth.c', line: '545', routine: 'ClientAuthentication' }