I created an empty migration accidentally with migrate dev --create-only. Next time I ran that command, it tried to apply all existing migrations (including the empty one), and that cause this error:
C:\Users\Jan\Documents\throwaway\pscaleMigrationTable>npx prisma migrate dev --create-only
Environment variables loaded from .env
Prisma schema loaded from prisma\schema.prisma
Datasource "db": MySQL database "migration-table" at "127.0.0.1:50155"
Error: P3006
Migration `20210709211128_foo2` failed to apply cleanly to the shadow database.
Error:
Database error
Error querying the database: Server error: `ERROR HY000 (1105): query was empty'
0: sql_migration_connector::flavour::mysql::sql_schema_from_migration_history
at migration-engine\connectors\sql-migration-connector\src\flavour\mysql.rs:337
1: sql_migration_connector::validate_migrations
at migration-engine\connectors\sql-migration-connector\src\lib.rs:322
2: migration_core::api::DevDiagnostic
at migration-engine\core\src\api.rs:89
(This is against PlanetScale, might be specific to them)
I created an empty migration accidentally with
migrate dev --create-only. Next time I ran that command, it tried to apply all existing migrations (including the empty one), and that cause this error:(This is against PlanetScale, might be specific to them)