Thai Heng has asked for the wisdom of the Perl Monks concerning the following question:
I use module Mojo::Pg::Migrations in windows, but It can't work properly. perl: v5.22.0, Mojo::Pg 2.08, Postgres: 9.4. OS:windows7 64. database postgres have only one schema named public.
use v5.22.0; use Mojo::Pg; my $pg = Mojo::Pg->new('postgresql://postgres:fengguang@localhost/post +gres'); my $result = $pg->migrations->from_file('E:\QMDownload\Mojo-Pg-2.08\ex +amples\blog\migrations\blog.sql')->migrate; say $pg->db->query('select ?::json as foo', {json => {bar => 'baz'}}) ->expand->hash->{foo}{bar};
What's wrong?
the file blog.sql as follows
-- 1 up create table if not exists posts ( id serial primary key, title text, body text ); -- 1 down drop table if exists posts;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mojo::Pg::Migrations can't work in windows
by 1nickt (Canon) on Aug 28, 2015 at 03:30 UTC | |
by Thai Heng (Beadle) on Aug 28, 2015 at 04:16 UTC | |
by 1nickt (Canon) on Aug 28, 2015 at 04:59 UTC |