generateMigrationScript gives redundant change in the type of the column to the same uuid type
Exposed 0.56.0, postgres.
I implemented my own `IdTable` replica: instead of client-side `.autoGenerate()`, it's server-side `.defaultExpression(CustomFunction("gen_random_uuid", UUIDColumnType()))` (inspired from https://github.com/JetBrains/Exposed/issues/588#issuecomment-506011474).
I then generate a migration script.
Actual:
`ALTER TABLE locations ALTER COLUMN id TYPE uuid, ALTER COLUMN id SET DEFAULT gen_random_uuid();`
Expected:
`ALTER TABLE locations ALTER COLUMN id SET DEFAULT gen_random_uuid();`
0 条评论