From: Peter Rabbitson Date: Wed, 12 Aug 2009 14:13:48 +0000 (+0000) Subject: Remove leftovers from frew's tests X-Git-Tag: v0.08109~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c0678cfc834ffbaebc2860104bec62008fe82b8d;p=dbsrgits%2FDBIx-Class.git Remove leftovers from frew's tests --- diff --git a/t/lib/DBICTest/Schema/Track.pm b/t/lib/DBICTest/Schema/Track.pm index 948597d..a6de595 100644 --- a/t/lib/DBICTest/Schema/Track.pm +++ b/t/lib/DBICTest/Schema/Track.pm @@ -34,11 +34,6 @@ __PACKAGE__->add_columns( data_type => 'smalldatetime', is_nullable => 1 }, - increment => { - data_type => 'integer', - is_nullable => 1, - accessor => '_increment', - } ); __PACKAGE__->set_primary_key('trackid'); @@ -55,20 +50,4 @@ __PACKAGE__->belongs_to( disc => 'DBICTest::Schema::CD' => 'cd'); __PACKAGE__->might_have( cd_single => 'DBICTest::Schema::CD', 'single_track' ); __PACKAGE__->might_have( lyrics => 'DBICTest::Schema::Lyrics', 'track_id' ); -sub increment { - my $self = shift; - if(@_) { - return $self->_increment($_[0] + 1); - } - return $self->_increment(); -} - -sub set_increment { - my $self = shift; - if(@_) { - return $self->_increment($_[0]); - } - return $self->_increment(); -} - 1; diff --git a/t/lib/sqlite.sql b/t/lib/sqlite.sql index ce8be83..86e345e 100644 --- a/t/lib/sqlite.sql +++ b/t/lib/sqlite.sql @@ -1,6 +1,6 @@ -- -- Created by SQL::Translator::Producer::SQLite --- Created on Thu Jul 30 09:37:43 2009 +-- Created on Wed Aug 12 16:10:43 2009 -- @@ -285,8 +285,7 @@ CREATE TABLE track ( title varchar(100) NOT NULL, last_updated_on datetime, last_updated_at datetime, - small_dt smalldatetime, - increment integer + small_dt smalldatetime ); CREATE INDEX track_idx_cd ON track (cd);