X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FJournal%2FDB%2FChangeSet.pm;h=05bb24833933dc008ce10519528b9c4eb19bb121;hb=34b144a0d087a0e609852ab05c59be751db0d530;hp=688949af4ece27b9f6b40d0c4a7ff29f29e0fa61;hpb=851aad7c6363d8ef85e55bc4949d92cbca1170dc;p=dbsrgits%2FDBIx-Class-Journal.git diff --git a/lib/DBIx/Class/Schema/Journal/DB/ChangeSet.pm b/lib/DBIx/Class/Schema/Journal/DB/ChangeSet.pm index 688949a..05bb248 100644 --- a/lib/DBIx/Class/Schema/Journal/DB/ChangeSet.pm +++ b/lib/DBIx/Class/Schema/Journal/DB/ChangeSet.pm @@ -1,35 +1,41 @@ package DBIx::Class::Schema::Journal::DB::ChangeSet; -use base 'DBIx::Class'; +use base 'DBIx::Class::Core'; -__PACKAGE__->load_components(qw/InflateColumn::DateTime Core/); +__PACKAGE__->load_components(qw/InflateColumn::DateTime/); __PACKAGE__->table('changeset'); __PACKAGE__->add_columns( - ID => { - data_type => 'integer', - is_auto_increment => 1, - is_primary_key => 1, - is_nullable => 0, - }, - user_id => { - data_type => 'integer', - is_nullable => 1, - is_foreign_key => 1, - }, - set_date => { - data_type => 'timestamp', - is_nullable => 0, - }, - session_id => { - data_type => 'varchar', - size => 255, - is_nullable => 1, - }, - ); + ID => { + data_type => 'integer', + is_auto_increment => 1, + is_primary_key => 1, + is_nullable => 0, + }, + user_id => { + data_type => 'integer', + is_nullable => 1, + is_foreign_key => 1, + }, + set_date => { + data_type => 'timestamp', + is_nullable => 0, + }, + session_id => { + data_type => 'varchar', + size => 255, + is_nullable => 1, + }, +); sub new { my $self = shift->next::method(@_); + # I think we should not do the following and + # instead use DBIx::Class::TimeStamp. If I + # can think of a good way (passing a version on + # import?) to do it and retain backcompat I will. + # + # --fREW, 01-27-2010 $self->set_date(gmtime); return $self; }