Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prisma Migrator ADD COLUMN formatting #24115

Open
leppaott opened this issue May 8, 2024 · 1 comment
Open

Prisma Migrator ADD COLUMN formatting #24115

leppaott opened this issue May 8, 2024 · 1 comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/schema Issue for team Schema. topic: migrate topic: prisma migrate dev CLI: prisma migrate dev

Comments

@leppaott
Copy link

leppaott commented May 8, 2024

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
@leppaott leppaott added the kind/bug A reported bug. label May 8, 2024
@janpio janpio added bug/2-confirmed Bug has been reproduced and confirmed. team/schema Issue for team Schema. topic: migrate topic: prisma migrate dev CLI: prisma migrate dev labels May 8, 2024
@janpio
Copy link
Member

janpio commented May 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/schema Issue for team Schema. topic: migrate topic: prisma migrate dev CLI: prisma migrate dev
Projects
None yet
Development

No branches or pull requests

2 participants