Empty migration when baselining a database
Hi
I'm following this https://www.prisma.io/docs/orm/prisma-migrate/workflows/baselining to baseline a MariaDB database.
but the migration.sql is empty
What am I missing here?
Baselining a database | Prisma Documentation
How to initialize a migration history for an existing database that contains important data.
4 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai
is there if you need a quick second opinion.Hmm! That's strange.
Can you try running
npx prisma db pull
to ensure that your schema.prisma file is in sync with tables from your database?Hi
That is working after I ran
pnpm prisma db pull
. Here are the steps:
pnpm prisma db pull
should be mentioned in the baselining documentation too?Glad to hear that it is working now!
Doing
db pull
shouldn't be mandatory though 🤔