prisma db pull adds redundant comments: "This table is a partition table ..." #18103
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
topic: prisma db pull
CLI: prisma db pull
Milestone
Bug description
When doing
prisma db pull
on a database with a partition table, theschema.prisma
gets a comment like this:If you do
prisma db pull
again, the comment is added again, even though it already existedHow to reproduce
Create a partition table:
Run prisma pull three times (or, at least more than once)
Observe the generated
schema.prisma
:Notice how the message
This table is a partition table and requires additional setup for migrations. Visit https://pris.ly/d/partition-tables for more info.
is repeated once for every time we ranprisma db pull
Expected behavior
The comment should only appear once per model.
Prisma information
(The schema.prisma is already included above)
Prisma version: 4.10.1
Postgres version: 14
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: