Comma in check constraint value causes error with cli command schema:drop
with Postgres
#3460
Labels
bug
Something isn't working
schema:drop
with Postgres
#3460
Describe the bug
A clear and concise description of what the bug is.
When you have a check constraint with a value with a comma in it, trying to drop the schema through the CLI.
This happens due to the
m2[1].split(',')
here: https://github.com/mikro-orm/mikro-orm/blob/master/packages/postgresql/src/PostgreSqlSchemaHelper.ts#L150Stack trace
To Reproduce
Steps to reproduce the behavior:
export enum X { AB = 'A,B' }
yarn mikro-orm schema:drop -r
throws an error.Expected behavior
No error 😛
Additional context
Add any other context about the problem here.
Versions
The text was updated successfully, but these errors were encountered: