Revision history for {{$dist->name}}
{{$NEXT}}
+ - Correctly set the version deployed to the version requested on install
+ instead of just the current schema version
0.002113 2012-05-05 23:09:33 America/Chicago
- Remove isa check on schema attributes so that you may pass the schema
use_ok 'DBICVersion_v2';
my $s = DBICVersion::Schema->connect(@connection);
$DBICVersion::Schema::VERSION = 2;
+ subtest 'bug deploying first version' => sub {
+ my $dbh = DBICDHTest::dbh();
+ my @connection = (sub { $dbh }, { ignore_version => 1 });
+ my $s = DBICVersion::Schema->connect(@connection);
+
+ my $handler = DH->new({
+ script_directory => $sql_dir,
+ schema => $s,
+ databases => 'SQLite',
+ });
+ $handler->install({ version => 1 });
+ is($handler->database_version, 1, 'correctly set version to 1');
+ };
+
ok($s, 'DBICVersion::Schema 2 instantiates correctly');
my $handler = DH->new({
script_directory => $sql_dir,