added new schema for testing oracle sequence
Johannes Plunien [Tue, 6 Nov 2007 21:52:30 +0000 (21:52 +0000)]
t/lib/DBICTest/Schema/ArtistOracle.pm [new file with mode: 0644]

diff --git a/t/lib/DBICTest/Schema/ArtistOracle.pm b/t/lib/DBICTest/Schema/ArtistOracle.pm
new file mode 100644 (file)
index 0000000..9a5e3d4
--- /dev/null
@@ -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;