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 $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({
|
||||
dsn => $dsn,
|
||||
dir => $parent->sibling("migrations")->to_string,
|
||||
})->migrate or die "couldn't run migration";
|
||||
|
||||
make_schema_at(
|
||||
"PoorBooru::Schema",
|
||||
{ dump_directory => $parent->sibling("lib")->to_string },
|
||||
[ $dsn ],
|
||||
);
|
||||
make_schema_at("PoorBooru::Schema", \%opts, [$dsn]);
|
||||
|
Loading…
Reference in New Issue
Block a user