Hi guys, is there a way to debug what the CLI is d...
# orm-help
m
Hi guys, is there a way to debug what the CLI is doing? like a --verbose?
I am getting the following error when doing a
db push
, but have no idea what is causing it (lots of changes).
Copy code
Error: db error: ERROR: syntax error at or near ","
   0: sql_migration_connector::apply_migration::apply_migration
             at migration-engine/connectors/sql-migration-connector/src/apply_migration.rs:9
   1: migration_core::state::SchemaPush
             at migration-engine/core/src/state.rs:347
n
Hey 👋 Can you please share your schema file so that we could have a look at why are you receiving syntax error?
j
A good way to debug this is to either use
migrate dev --create-only
or use
migrate diff
against the database that you are also trying to
db push
against: https://www.prisma.io/docs/reference/api-reference/command-reference#migrate-diff