Closed KES777 closed 5 years ago
You gave it a "database", which was invalid. It uses the loading of the producer class to determine validity. You made it invalid, so it told you it was invalid.
It did not says it is invalid. It says "Unknown" and suggest to try parameter that I supply already:
Unknown database type PostgreSQL ... try GraphViz ...
PostgreSQL
would be much better if it shows failure error while loading PostgresSQL
like Mojolicious does when can not load something:
https://metacpan.org/release/Mojolicious/source/lib/Mojo/Loader.pm#L44
https://metacpan.org/release/Mojolicious/source/lib/Mojo/Loader.pm#L50
If SQL::Translator::Producer::PostgreSQL has syntax error, the
$(which dbic-migration) --force --schema_class HyperMouse::Schema --database PostgreSQL
returnsHow to reproduce:
SQL::Translator::Producer::PostgreSQL
module$(which dbic-migration) --force --schema_class HyperMouse::Schema --database PostgreSQL