The documentation suggests you should use:
use Mojo::Pg; use Mojo::Pg::Migrations; my $dsn = 'postgresql://postgres:fengguang@localhost/postgres'; my $file = 'E:\QMDownload\Mojo-Pg-2.08\examples\blog\migrations\blog.s +ql'; my $migrations = Mojo::Pg::Migrations->new( pg => Mojo::Pg->new( $dsn +) ); $migrations = $migrations->from_file( $file )->migrate;
In reply to Re: Mojo::Pg::Migrations can't work in windows
by 1nickt
in thread Mojo::Pg::Migrations can't work in windows
by Thai Heng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |