You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to execute the command npx mikro-orm migration:fresh it fails and throws an error.
Stack trace
DriverException: set session_replication_role = 'replica'; - permission denied to set parameter "session_replication_role"
at PostgreSqlExceptionConverter.convertException (my-project/node_modules/@mikro-orm/core/platforms/ExceptionConverter.js:8:16)
at PostgreSqlExceptionConverter.convertException (my-project/node_modules/@mikro-orm/postgresql/PostgreSqlExceptionConverter.js:42:22)
at PostgreSqlDriver.convertException (my-project/node_modules/@mikro-orm/core/drivers/DatabaseDriver.js:173:54)
at my-project/node_modules/@mikro-orm/core/drivers/DatabaseDriver.js:177:24
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async SchemaGenerator.execute (my-project/node_modules/@mikro-orm/knex/schema/SchemaGenerator.js:350:13)
at async SchemaGenerator.dropSchema (my-project/node_modules/@mikro-orm/knex/schema/SchemaGenerator.js:77:9)
at async Function.handleFreshCommand (my-project/node_modules/@mikro-orm/cli/commands/MigrationCommandFactory.js:164:9)
at async Function.handleMigrationCommand (my-project/node_modules/@mikro-orm/cli/commands/MigrationCommandFactory.js:110:17)
Execute command npx mikro-orm migration:fresh with any schema using PostgreSQL and setting schemaGenerator.disableForeignKeys = true and/or migrations.disableForeignKeys = true.
Additional context
PostgreSQL
Versions
Dependancy
Version
node
16.10.0
typescript
4.3.5
mikro-orm
5.1.2
your-driver
pg
The text was updated successfully, but these errors were encountered:
Description
When trying to execute the command
npx mikro-orm migration:fresh
it fails and throws an error.Stack trace
Configuration
To reproduce
Execute command
npx mikro-orm migration:fresh
with any schema using PostgreSQL and settingschemaGenerator.disableForeignKeys = true
and/ormigrations.disableForeignKeys = true
.Additional context
PostgreSQL
Versions
The text was updated successfully, but these errors were encountered: