migrate.pl: ignore dbix_migration table
This commit is contained in:
parent
6dfabdf29f
commit
db26c5fcc9
@ -9,14 +9,14 @@ use Mojo::File qw(curfile);
|
|||||||
|
|
||||||
my $parent = curfile->dirname;
|
my $parent = curfile->dirname;
|
||||||
my $dsn = "dbi:SQLite:" . $parent->sibling("db", "PoorBooru.db")->to_string;
|
my $dsn = "dbi:SQLite:" . $parent->sibling("db", "PoorBooru.db")->to_string;
|
||||||
|
my %opts = (
|
||||||
|
dump_directory => $parent->sibling("lib")->to_string,
|
||||||
|
exclude => qr/^dbix_migration$/,
|
||||||
|
);
|
||||||
|
|
||||||
DBIx::Migration->new({
|
DBIx::Migration->new({
|
||||||
dsn => $dsn,
|
dsn => $dsn,
|
||||||
dir => $parent->sibling("migrations")->to_string,
|
dir => $parent->sibling("migrations")->to_string,
|
||||||
})->migrate or die "couldn't run migration";
|
})->migrate or die "couldn't run migration";
|
||||||
|
|
||||||
make_schema_at(
|
make_schema_at("PoorBooru::Schema", \%opts, [$dsn]);
|
||||||
"PoorBooru::Schema",
|
|
||||||
{ dump_directory => $parent->sibling("lib")->to_string },
|
|
||||||
[ $dsn ],
|
|
||||||
);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user