Add a test lib and failing test for no explicit sequence declaration
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / lib / NoSequence / Result / Dressing.pm
diff --git a/t/lib/NoSequence/Result/Dressing.pm b/t/lib/NoSequence/Result/Dressing.pm
new file mode 100644 (file)
index 0000000..a57d225
--- /dev/null
@@ -0,0 +1,19 @@
+package NoSequence::Result::Dressing;
+
+use strict;
+use warnings;
+use parent 'DBIx::Class::Core';
+
+__PACKAGE__->table('dressing');
+
+__PACKAGE__->add_columns(
+    id => {
+        data_type         => 'integer',
+        is_auto_increment => 1,
+    },
+    acidity => { data_type => 'integer', default => '2' }
+);
+
+__PACKAGE__->set_primary_key('id');
+
+1;