andreioff has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys! Recently i started to make a Mojolicious login app and i have some problems with the Postgresql database deployment.I use for the database connection DBIx::Class. I made the Schema of my database and i used 2 lines of code to start using the database in my app:
my $c = Schema->connect('dbi:Pg:dbname=accounts;host=localhost', 'user +name', 'password', {AutoCommit => 1}); $c->deploy();
But when i try to start the app, it says it can't deploy the database due to an error with the SQL::Translator::Producer::PostgreSQL which i have installed.
Can't load application from file: "/home.../file": DBIx::Class:: Storage::DBI:: deployment_stateme nts(): Unable to produce deployment statements: translate: Error with producer 'SQL::Translator:: Producer:: PostgreSQL'I will leave a link to my github if you want to see my code so far: https://github.com/andreioff/Test-perl/tree/master/accounts. I think the problem is that i don't have something installed on my computer but i don't know what.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Database deploy error in Mojolicious app
by 1nickt (Canon) on Jul 26, 2019 at 13:03 UTC | |
by andreioff (Initiate) on Jul 26, 2019 at 14:16 UTC | |
by Your Mother (Archbishop) on Jul 26, 2019 at 14:26 UTC | |
by 1nickt (Canon) on Jul 26, 2019 at 14:59 UTC | |
by andreioff (Initiate) on Jul 26, 2019 at 20:00 UTC | |
|
Re: Database deploy error in Mojolicious app
by Corion (Patriarch) on Jul 26, 2019 at 12:35 UTC |