Frontend uses the JSON schema to validate pgroll JSON migrations, however, columns like default should be an SQL expression can only be represented as String in the JSON schema. This makes validating them hard. Maybe pgroll can provide a validate command/API that can be used to see if a JSON migration is correct or not? Frontend can use this to validate before starting the migration and pgroll CLI users too can benefit from it.
As a CLI command, this can be something like: pgroll validate <migrationfile>
Frontend uses the JSON schema to validate pgroll JSON migrations, however, columns like default should be an SQL expression can only be represented as String in the JSON schema. This makes validating them hard. Maybe
pgroll
can provide a validate command/API that can be used to see if a JSON migration is correct or not? Frontend can use this to validate before starting the migration andpgroll
CLI users too can benefit from it.As a CLI command, this can be something like:
pgroll validate <migrationfile>