X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FJournal%2FDB%2FChangeLog.pm;h=1b3dc2418a04b06b7a6098b0573909657c4a2664;hb=34b144a0d087a0e609852ab05c59be751db0d530;hp=2bc9b0173fcf5d1a9f3e5701b9cbd51bc0142323;hpb=851aad7c6363d8ef85e55bc4949d92cbca1170dc;p=dbsrgits%2FDBIx-Class-Journal.git diff --git a/lib/DBIx/Class/Schema/Journal/DB/ChangeLog.pm b/lib/DBIx/Class/Schema/Journal/DB/ChangeLog.pm index 2bc9b01..1b3dc24 100644 --- a/lib/DBIx/Class/Schema/Journal/DB/ChangeLog.pm +++ b/lib/DBIx/Class/Schema/Journal/DB/ChangeLog.pm @@ -1,27 +1,27 @@ package DBIx::Class::Schema::Journal::DB::ChangeLog; -use base 'DBIx::Class'; +use base 'DBIx::Class::Core'; -__PACKAGE__->load_components(qw/Ordered Core/); +__PACKAGE__->load_components(qw/Ordered/); __PACKAGE__->table('changelog'); __PACKAGE__->add_columns( - ID => { - data_type => 'integer', - is_auto_increment => 1, - is_primary_key => 1, - is_nullable => 0, - }, - changeset_id => { - data_type => 'integer', - is_nullable => 0, - is_foreign_key => 1, - }, - order_in => { - data_type => 'integer', - is_nullable => 0, - }, - ); + ID => { + data_type => 'integer', + is_auto_increment => 1, + is_primary_key => 1, + is_nullable => 0, + }, + changeset_id => { + data_type => 'integer', + is_nullable => 0, + is_foreign_key => 1, + }, + order_in => { + data_type => 'integer', + is_nullable => 0, + }, +); __PACKAGE__->set_primary_key('ID'); @@ -30,4 +30,5 @@ __PACKAGE__->belongs_to('changeset', 'DBIx::Class::Schema::Journal::DB::ChangeSe __PACKAGE__->position_column('order_in'); __PACKAGE__->grouping_column('changeset_id'); + 1;