in reply to Mojo::Pg::Migrations can't work in windows
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mojo::Pg::Migrations can't work in windows
by Thai Heng (Beadle) on Aug 28, 2015 at 04:16 UTC | |
by 1nickt (Canon) on Aug 28, 2015 at 04:59 UTC |