prisma/prisma

Prisma Migrator ADD COLUMN formatting

leppaott opened this issue · 1 comments

Bug description

prisma migrate dev --create-only creates migration files with such style:

ALTER TABLE "TableA" ADD COLUMN "myField" INTEGER;

I'd like to ask why there is such spaces before the column name?

Could it be just ADD COLUMN "myField"

How to reproduce

prisma migrate dev --create-only

Expected behavior

No response

Prisma information

--

Environment & setup

Docker

Prisma Version

5.10.2

I can confirm that we sometimes have multiple spaces after ADD COLUMN in the generated migrations: https://github.com/search?q=repo%3Aprisma%2Fprisma-engines%20%22ADD%20COLUMN%20%20%22&type=code