From: Johannes Plunien Date: Tue, 6 Nov 2007 21:52:30 +0000 (+0000) Subject: added new schema for testing oracle sequence X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=67ff5ffac01b5a97283ca4cc7c8b913b6873af52;p=dbsrgits%2FDBIx-Class-Historic.git added new schema for testing oracle sequence --- diff --git a/t/lib/DBICTest/Schema/ArtistOracle.pm b/t/lib/DBICTest/Schema/ArtistOracle.pm new file mode 100644 index 0000000..9a5e3d4 --- /dev/null +++ b/t/lib/DBICTest/Schema/ArtistOracle.pm @@ -0,0 +1,36 @@ +package # hide from PAUSE + DBICTest::Schema::ArtistOracle; + +use base 'DBIx::Class::Core'; + +__PACKAGE__->table('artist_oracle'); +__PACKAGE__->source_info({ + "source_info_key_A" => "source_info_value_A", + "source_info_key_B" => "source_info_value_B", + "source_info_key_C" => "source_info_value_C", +}); +__PACKAGE__->add_columns( + 'artistid' => { + data_type => 'integer', + auto_nextval => 1, + sequence => 'artist_oracle_seq', + }, + 'otherid' => { + data_type => 'integer', + auto_nextval => 1, + sequence => 'artist_oracle_otherid_seq', + }, + 'nonpriid' => { + data_type => 'integer', + auto_nextval => 1, + sequence => 'artist_oracle_nonpriid_seq', + }, + 'name' => { + data_type => 'varchar', + size => 100, + is_nullable => 1, + }, +); +__PACKAGE__->set_primary_key('artistid', 'otherid'); + +1;