Permalink
Browse files

Rename DBIx::SchemaUpgrader to DBIx::Schema::UpToDate

because it helps keep your schema up to date.
  • Loading branch information...
1 parent d443478 commit a73f9e40832b25225257cfad8f1f8f163fd929cf @rwstauner committed Mar 1, 2011
Showing with 11 additions and 11 deletions.
  1. +1 −1 .gitignore
  2. +1 −1 Changes
  3. +1 −1 README.pod
  4. +1 −1 dist.ini
  5. +5 −5 lib/DBIx/{SchemaUpgrader.pm → Schema/UpToDate.pm}
  6. +1 −1 t/methods.t
  7. +1 −1 xt/author/sqlite.t
View
@@ -1,2 +1,2 @@
-/DBIx-SchemaUpgrader*
+/DBIx-Schema-UpToDate*
.build
View
@@ -1,3 +1,3 @@
-Revision history for DBIx-SchemaUpgrader
+Revision history for DBIx-Schema-UpToDate
{{$NEXT}}
View
@@ -1,4 +1,4 @@
-=head1 DBIx::SchemaUpgrader
+=head1 DBIx::Schema::UpToDate
This module provides a base class for keeping a database schema up to date.
If you need to make changes to the schema
View
@@ -1,4 +1,4 @@
-name = DBIx-SchemaUpgrader
+name = DBIx-Schema-UpToDate
copyright_year = 2011
[@GopherRepellent]
@@ -1,5 +1,5 @@
-package DBIx::SchemaUpgrader;
-# ABSTRACT: Automatically upgrade a database schema
+package DBIx::Schema::UpToDate;
+# ABSTRACT: Helps keep a database schema up to date
use strict;
use warnings;
@@ -197,7 +197,7 @@ sub version_table_name {
=head1 SYNOPSIS
package Local::Database;
- use parent 'DBIx::SchemaUpgrader';
+ use parent 'DBIx::Schema::UpToDate';
sub instructions {
my ($self) = @_;
@@ -249,7 +249,7 @@ The instructions can be run individually (outside of L</build>)
for testing your subs...
my $dbh = DBI->connect(@in_memory_database);
- my $schema = DBIx::SchemaUpgrader->new(dbh => $dbh, build => 0);
+ my $schema = DBIx::Schema::UpToDate->new(dbh => $dbh, build => 0);
$schema->initialize_version_table;
$schema->upgrade_to_version(1);
@@ -272,7 +272,7 @@ for testing your subs...
=head1 TODO
=for :list
-* Rename this module
+* Come up with a better name (too late).
* Check for DBI errors?
You should probably use RaiseError in DBI,
but perhaps we should be checking the return values of certain L<DBI> calls.
View
@@ -3,7 +3,7 @@ use warnings;
use Test::More 0.96;
use Test::MockObject 1.09;
-my $mod = 'DBIx::SchemaUpgrader';
+my $mod = 'DBIx::Schema::UpToDate';
eval "require $mod" or die $@;
my ($table_info, $db_ver);
View
@@ -7,7 +7,7 @@ use DBI;
eval "require DBD::SQLite"
or plan skip_all => 'DBD::SQLite required for this author test';
-my $mod = 'DBIx::SchemaUpgrader';
+my $mod = 'DBIx::Schema::UpToDate';
eval "require $mod" or die $@;
my $dbh = DBI->connect('dbi:SQLite:dbname=:memory:', undef, undef, {FetchHashKeyName => 'NAME_lc'});

0 comments on commit a73f9e4

Please sign in to comment.