Add a test lib and failing test for no explicit sequence declaration
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / lib / NoSequence / Result / Salad.pm
diff --git a/t/lib/NoSequence/Result/Salad.pm b/t/lib/NoSequence/Result/Salad.pm
new file mode 100644 (file)
index 0000000..7249d18
--- /dev/null
@@ -0,0 +1,17 @@
+package NoSequence::Result::Salad;
+
+use strict;
+use warnings;
+use parent 'DBIx::Class::Core';
+use aliased 'DBIx::Class::ResultSource::MultipleTableInheritance' => 'MTI';
+
+__PACKAGE__->table_class(MTI);
+__PACKAGE__->table('salad');
+__PACKAGE__->add_columns(
+    "id", { data_type => "integer", is_auto_increment => 1 },
+    "fresh", { data_type => "boolean", },
+);
+
+__PACKAGE__->set_primary_key("id");
+
+1;