2 package Debbugs::DB::Result::BinaryVersion;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::BinaryVersion
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
31 __PACKAGE__->table_class("DBIx::Class::ResultSource::View");
33 =head1 TABLE: C<binary_versions>
37 __PACKAGE__->table("binary_versions");
38 __PACKAGE__->result_source_instance->view_definition(" SELECT sp.pkg AS src_pkg,\n sv.ver AS src_ver,\n bp.pkg AS bin_pkg,\n a.arch,\n b.ver AS bin_ver,\n svb.ver AS src_ver_based_on,\n spb.pkg AS src_pkg_based_on\n FROM ((((((bin_ver b\n JOIN arch a ON ((b.arch = a.id)))\n JOIN bin_pkg bp ON ((b.bin_pkg = bp.id)))\n JOIN src_ver sv ON ((b.src_ver = sv.id)))\n JOIN src_pkg sp ON ((sv.src_pkg = sp.id)))\n LEFT JOIN src_ver svb ON ((sv.based_on = svb.id)))\n LEFT JOIN src_pkg spb ON ((spb.id = svb.src_pkg)))");
49 data_type: 'debversion'
64 data_type: 'debversion'
67 =head2 src_ver_based_on
69 data_type: 'debversion'
72 =head2 src_pkg_based_on
79 __PACKAGE__->add_columns(
81 { data_type => "text", is_nullable => 1 },
83 { data_type => "debversion", is_nullable => 1 },
85 { data_type => "text", is_nullable => 1 },
87 { data_type => "text", is_nullable => 1 },
89 { data_type => "debversion", is_nullable => 1 },
91 { data_type => "debversion", is_nullable => 1 },
93 { data_type => "text", is_nullable => 1 },
97 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
98 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0MeJnGxBc8gdEoPE6Sn6Sw
100 __PACKAGE__->result_source_instance->view_definition(<<EOF);
101 SELECT sp.pkg AS src_pkg, sv.ver AS src_ver, bp.pkg AS bin_pkg, a.arch AS arch, b.ver AS bin_ver,
102 svb.ver AS src_ver_based_on, spb.pkg AS src_pkg_based_on
103 FROM bin_ver b JOIN arch a ON b.arch = a.id
104 JOIN bin_pkg bp ON b.bin_pkg = bp.id
105 JOIN src_ver sv ON b.src_ver = sv.id
106 JOIN src_pkg sp ON sv.src_pkg = sp.id
107 LEFT OUTER JOIN src_ver svb ON sv.based_on = svb.id
108 LEFT OUTER JOIN src_pkg spb ON spb.id = svb.src_pkg;
111 # You can replace this text with custom code or comments, and it will be preserved on regeneration