Yo, is there a way to ignore an existing table ent...
# prisma-migrate
b
Yo, is there a way to ignore an existing table entirely? Use-case: we've merged two tables into one, the old table is still there for data science reasons (before we delete it entirely, there's some data in there we want to play with) but I want to remove this table from our
schema.prisma
file without it triggering a migration to drop the table. Is this possible? I tried this:
Copy code
model companies {
  // deleted every column here and set to ignore
  @@ignore
}
but when I run
prisma migrate dev
it wants to drop these columns still, I'd rather just hide this table from prisma entirely so it doesn't want to control it any more.
1
r
Hi @Barnaby 👋 At the moment, there is an open issue for this feature. However there are workarounds discussed in there. Do have a look and let us know if it helps.
👍 1
b
Ah thanks, no worries!
I grabbed the @@ignore from a github issue but it seems it only applies to introspection and code generation rather than migrations