[Bast-commits] r3855 - DBIx-Class/0.08/branches/oracle_sequence/t/lib/DBICTest/Schema

plu at dev.catalyst.perl.org plu at dev.catalyst.perl.org
Tue Nov 6 21:52:30 GMT 2007


Author: plu
Date: 2007-11-06 21:52:30 +0000 (Tue, 06 Nov 2007)
New Revision: 3855

Added:
   DBIx-Class/0.08/branches/oracle_sequence/t/lib/DBICTest/Schema/ArtistOracle.pm
Log:
added new schema for testing oracle sequence


Added: DBIx-Class/0.08/branches/oracle_sequence/t/lib/DBICTest/Schema/ArtistOracle.pm
===================================================================
--- DBIx-Class/0.08/branches/oracle_sequence/t/lib/DBICTest/Schema/ArtistOracle.pm	                        (rev 0)
+++ DBIx-Class/0.08/branches/oracle_sequence/t/lib/DBICTest/Schema/ArtistOracle.pm	2007-11-06 21:52:30 UTC (rev 3855)
@@ -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;




More information about the Bast-commits mailing list