use Humming-Bird::Core; use Humming-Bird::Middleware; use Humming-Bird::Advice; use DB::Migration::Simple; use DBIish; # Local libs use Pastes-Bin::Controller::Paste; # Logging middleware &middleware-logger; advice &advice-logger; # Database stuff my $*dbh = DBIish.connect: 'Pg', :host, :database, :user, password => prompt 'enter DB password: '; my $m = DB::Migration::Simple.new: :$*dbh, :migration-file, :verbose; $m.migrate: :version<1>;