rename Change to ChangeLog to avoid reserved word problem
[dbsrgits/DBIx-Class-Journal.git] / lib / DBIx / Class / Schema / Journal / DB / ChangeLog.pm
similarity index 87%
rename from lib/DBIx/Class/Schema/Journal/DB/Change.pm
rename to lib/DBIx/Class/Schema/Journal/DB/ChangeLog.pm
index 519973a..d3ed0ef 100644 (file)
@@ -1,13 +1,13 @@
-package DBIx::Class::Schema::Journal::DB::Change;
+package DBIx::Class::Schema::Journal::DB::ChangeLog;
 
 use base 'DBIx::Class';
 
 # __PACKAGE__->load_components(qw/Core/);
 __PACKAGE__->load_components(qw/Ordered Core/);
-__PACKAGE__->table('change');
+__PACKAGE__->table('change_log');
 
 __PACKAGE__->add_columns(
-                         ID => {
+                         id => {
                              data_type => 'integer',
                              is_auto_increment => 1,
                              is_primary_key => 1,
@@ -25,7 +25,7 @@ __PACKAGE__->add_columns(
                          );
 
 
-__PACKAGE__->set_primary_key('ID');
+__PACKAGE__->set_primary_key('id');
 __PACKAGE__->add_unique_constraint('setorder', [ qw/changeset_id order_in/ ]);
 __PACKAGE__->belongs_to('changeset', 'DBIx::Class::Schema::Journal::DB::ChangeSet', 'changeset_id');