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
Describe the bug
Migrations do not respect table scheme.
Stack trace
TableExistsException: create table "test"."DEVICES" ("ID" serial primary key, "TOKEN" varchar(255) not null); - relation "DEVICES" already exists
at PostgreSqlExceptionConverter.convertException (/home/virchenko/Projects/phyapi/node_modules/@mikro-orm/postgresql/PostgreSqlExceptionConverter.js:38:24)
at PostgreSqlDriver.convertException (/home/virchenko/Projects/phyapi/node_modules/@mikro-orm/core/drivers/DatabaseDriver.js:171:54)
at /home/virchenko/Projects/phyapi/node_modules/@mikro-orm/core/drivers/DatabaseDriver.js:175:24
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Function.runSerial (/home/virchenko/Projects/phyapi/node_modules/@mikro-orm/core/utils/Utils.js:458:22)
at MigrationRunner.run (/home/virchenko/Projects/phyapi/node_modules/@mikro-orm/migrations/MigrationRunner.js:17:13)
Down migrations are planned, but that will require deeper refactoring of how the schema diffing works. I marked this as a bug as the second migration should be indeed empty. Will close this with a fix for that - the rest are feature proposals, not bugs - schema/namespace diffing is not implemented at all, just like down migrations. Feel free to create new issues/feature requests for that, they should be separate as those are distinct features.
Describe the bug
Migrations do not respect table scheme.
Stack trace
To Reproduce
Steps to reproduce the behavior:
where output will be like this:
where output will be the same:
Expected behavior
Correct migrations:
Versions
The text was updated successfully, but these errors were encountered: