]> git.donarmstrong.com Git - debbugs.git/commitdiff
update to new schema which includes many_to_many relationships
authorDon Armstrong <don@donarmstrong.com>
Wed, 8 Mar 2017 03:04:13 +0000 (19:04 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 8 Mar 2017 03:04:13 +0000 (19:04 -0800)
17 files changed:
Debbugs/DB.pm
Debbugs/DB/Result/BinaryVersion.pm
Debbugs/DB/Result/Bug.pm
Debbugs/DB/Result/BugAffectsBinpackage.pm
Debbugs/DB/Result/BugAffectsSrcpackage.pm
Debbugs/DB/Result/BugBinpackage.pm
Debbugs/DB/Result/BugMessage.pm
Debbugs/DB/Result/BugPackage.pm
Debbugs/DB/Result/BugSrcpackage.pm
Debbugs/DB/Result/BugStatusCache.pm
Debbugs/DB/Result/BugTag.pm
Debbugs/DB/Result/BugUserTag.pm
Debbugs/DB/Result/CorrespondentFullName.pm
Debbugs/DB/Result/Message.pm
Debbugs/DB/Result/MessageCorrespondent.pm
Debbugs/DB/Result/MessageRef.pm
Debbugs/DB/Result/SrcPkg.pm

index ed6c46ada0e42febb95113732e534050593eca5f..656ff00ca581fe44097d0d9299439ba805e46eb2 100644 (file)
@@ -17,7 +17,7 @@ __PACKAGE__->load_namespaces;
 
 # This version must be incremented any time the schema changes so that
 # DBIx::Class::DeploymentHandler can do its work
-our $VERSION=4;
+our $VERSION=5;
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
 
index 57f6b5f1154f80b69f6f90926dbd3954386b4a67..426b725dfc801f04e85d6750d1bb1dfbdfff2041 100644 (file)
@@ -35,6 +35,7 @@ __PACKAGE__->table_class("DBIx::Class::ResultSource::View");
 =cut
 
 __PACKAGE__->table("binary_versions");
+__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)))");
 
 =head1 ACCESSORS
 
@@ -93,8 +94,8 @@ __PACKAGE__->add_columns(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fH11OTb1r9SS1Ps9tM6WPQ
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0MeJnGxBc8gdEoPE6Sn6Sw
 
 __PACKAGE__->result_source_instance->view_definition(<<EOF);
 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,
index 4a487825e6553d0132a02be2b622dfcc042c8baf..1e68645d8391ea2aba0d677cb234ecfc386fe4b0 100644 (file)
@@ -517,5 +517,13 @@ __PACKAGE__->belongs_to(
 # Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07
 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iaipVETTaokcFNrICfIEAw
 
+__PACKAGE__->many_to_many(tags => 'bug_tags','tag');
+__PACKAGE__->many_to_many(user_tags => 'bug_user_tags','user_tag');
+__PACKAGE__->many_to_many(srcpackages => 'bug_srcpackages','src_pkg');
+__PACKAGE__->many_to_many(binpackages => 'bug_binpackages','bin_pkg');
+__PACKAGE__->many_to_many(affects_binpackages => 'bug_affects_binpackages','bin_pkg');
+__PACKAGE__->many_to_many(affects_srcpackages => 'bug_affects_srcpackages','src_pkg');
+__PACKAGE__->many_to_many(messages => 'bug_messages','message');
+
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
 1;
index 7b2290951fa74b0a7c3f20fabb2369b58ca40a2e..ce4b57efdb78cb7e3d7dbfc87f40ff98b605bc86 100644 (file)
@@ -37,13 +37,6 @@ __PACKAGE__->table("bug_affects_binpackage");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'bug_affects_binpackage_id_seq'
-
 =head2 bug
 
   data_type: 'integer'
@@ -63,31 +56,12 @@ Binary package id (matches bin_pkg)
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "bug_affects_binpackage_id_seq",
-  },
   "bug",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "bin_pkg",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<bug_affects_binpackage_id_pkg>
@@ -137,8 +111,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YMVeFNjGPxjuvU6ufDtRVg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qPJSly5VwC8Fl9hchBtB1Q
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index 0c86c75e44c074362013b69997d7465dc40d9f77..e25fa60aa04e6376ff58953ea214479bc65b9549 100644 (file)
@@ -37,13 +37,6 @@ __PACKAGE__->table("bug_affects_srcpackage");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'bug_affects_srcpackage_id_seq'
-
 =head2 bug
 
   data_type: 'integer'
@@ -63,31 +56,12 @@ Source package id (matches src_pkg)
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "bug_affects_srcpackage_id_seq",
-  },
   "bug",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "src_pkg",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<bug_affects_srcpackage_id_pkg>
@@ -137,8 +111,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BjS8+RV2k7wjqyLqmCZ+2w
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1TkTacVNBhXOnzV1ttCF2A
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index 63223df86af138c8db0ec45bace36859ba79ace9..869ce26d81913c16b05a4903fa3bf176adf55a93 100644 (file)
@@ -37,13 +37,6 @@ __PACKAGE__->table("bug_binpackage");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'bug_binpackage_id_seq'
-
 =head2 bug
 
   data_type: 'integer'
@@ -63,31 +56,12 @@ Binary package id (matches bin_pkg)
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "bug_binpackage_id_seq",
-  },
   "bug",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "bin_pkg",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<bug_binpackage_id_pkg>
@@ -137,8 +111,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FZAi6kX8ICe/ZJI0JEqZLg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wL+pwSCfWe/mMQOjziKSeg
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index b2aa87cae9b9c5af40df05d2e3688b43dfcfca02..cf5b193a1bd12f4d75424c9db2a426594ca604fd 100644 (file)
@@ -37,13 +37,6 @@ __PACKAGE__->table("bug_message");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'bug_message_id_seq'
-
 =head2 bug
 
   data_type: 'integer'
@@ -84,13 +77,6 @@ Time offset was valid
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "bug_message_id_seq",
-  },
   "bug",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "message",
@@ -103,18 +89,6 @@ __PACKAGE__->add_columns(
   { data_type => "timestamp with time zone", is_nullable => 1 },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<bug_message_bug_message_idx>
@@ -164,8 +138,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gof8IcnKupbpDmbU39kx6A
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BRbN9C6P/wvWWmSmjNGjLA
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index b3d40b88a7021eb66f96959a40ed2970c529e2ca..9019fcae9c727d7e350f0646946d5656665f5486 100644 (file)
@@ -35,6 +35,7 @@ __PACKAGE__->table_class("DBIx::Class::ResultSource::View");
 =cut
 
 __PACKAGE__->table("bug_package");
+__PACKAGE__->result_source_instance->view_definition(" SELECT b.bug,\n    b.bin_pkg AS pkg_id,\n    'binary'::text AS pkg_type,\n    bp.pkg AS package\n   FROM (bug_binpackage b\n     JOIN bin_pkg bp ON ((bp.id = b.bin_pkg)))\nUNION\n SELECT s.bug,\n    s.src_pkg AS pkg_id,\n    'source'::text AS pkg_type,\n    sp.pkg AS package\n   FROM (bug_srcpackage s\n     JOIN src_pkg sp ON ((sp.id = s.src_pkg)))");
 
 =head1 ACCESSORS
 
@@ -72,8 +73,8 @@ __PACKAGE__->add_columns(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ok2J+mjxvBcgdiqigiCBQA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+zeVIVZOYSZjTkD+1N2sdw
 
 __PACKAGE__->result_source_instance->view_definition(<<EOF);
 SELECT b.bug,b.bin_pkg,'binary',bp.pkg FROM bug_binpackage b JOIN bin_pkg bp ON bp.id=b.bin_pkg UNION
index eb24a5a3825aef43e7f7cf3522efa42eccd8b863..2bccb2918a09a9e4416bbe7d536bd4bbbc9dfff3 100644 (file)
@@ -37,13 +37,6 @@ __PACKAGE__->table("bug_srcpackage");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'bug_srcpackage_id_seq'
-
 =head2 bug
 
   data_type: 'integer'
@@ -63,31 +56,12 @@ Source package id (matches src_pkg)
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "bug_srcpackage_id_seq",
-  },
   "bug",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "src_pkg",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<bug_srcpackage_id_pkg>
@@ -137,8 +111,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rkrGE3oLGWe28oXEFt4UFg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5SduyMaGHABDrX19Cxg4fg
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index 7aea543926bdb174ceab2e5372896979489b575f..3d2dcc9d9a277376529138dfedfcc2fa86e1827d 100644 (file)
@@ -37,15 +37,6 @@ __PACKAGE__->table("bug_status_cache");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'bug_status_cache_id_seq'
-
-Bug status cache entry id
-
 =head2 bug
 
   data_type: 'integer'
@@ -99,13 +90,6 @@ Time that this status was last calculated
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "bug_status_cache_id_seq",
-  },
   "bug",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "suite",
@@ -144,18 +128,6 @@ __PACKAGE__->add_columns(
   },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<bug_status_cache_bug_suite_arch_idx>
@@ -235,8 +207,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jrPFpLs6vLgKWMSLyJAkxA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dgaCogdpUWo99BQhdH68Mg
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index 625f445d0ca0c8ee6f510c428320da649d0ff4f0..15e5c3a438957265d338872a07c2a85d0a61b6f7 100644 (file)
@@ -37,13 +37,6 @@ __PACKAGE__->table("bug_tag");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'bug_tag_id_seq'
-
 =head2 bug
 
   data_type: 'integer'
@@ -63,31 +56,12 @@ Tag id (matches tag)
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "bug_tag_id_seq",
-  },
   "bug",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "tag",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<bug_tag_bug_tag>
@@ -137,8 +111,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g7sgOcROAtOdRa9vrI5gQg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yyHP5f8zAxn/AdjOCr8WAg
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index 3363b62157bbc48eb85b8408f9ba0e7b37e48c54..113a36a1bccc98372cf72b1f0f9edbc9097726f8 100644 (file)
@@ -37,13 +37,6 @@ __PACKAGE__->table("bug_user_tag");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'bug_user_tag_id_seq'
-
 =head2 bug
 
   data_type: 'integer'
@@ -61,31 +54,12 @@ Bug id (matches bug)
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "bug_user_tag_id_seq",
-  },
   "bug",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "user_tag",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<bug_user_tag_bug_tag>
@@ -135,8 +109,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bczKcbFkWt98BDvXLdhpcg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jZngUCQ1eBBcfXd/jWCKGA
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index d4f73b097c6a26083d06927ae6ffc2d650639377..107e10b88e8ad4e601b4f7f8656007070370bb34 100644 (file)
@@ -37,21 +37,14 @@ __PACKAGE__->table("correspondent_full_name");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'correspondent_full_name_id_seq'
-
-Correspondent full name id
-
 =head2 correspondent
 
   data_type: 'integer'
   is_foreign_key: 1
   is_nullable: 0
 
+Correspondent ID (matches correspondent)
+
 =head2 full_name
 
   data_type: 'text'
@@ -69,13 +62,6 @@ Correspondent full name (includes e-mail address)
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "correspondent_full_name_id_seq",
-  },
   "correspondent",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "full_name",
@@ -89,18 +75,6 @@ __PACKAGE__->add_columns(
   },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<correspondent_full_name_correspondent_full_name_idx>
@@ -138,8 +112,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rXiBbe/rMz4dOMgW5ZovWw
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2Ac8mrDV2IsE/11YsYoqQQ
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index bc493f1396b55e3afe02216175e0e6ce1063df2a..0ac17aa525472f18669564a10d3c9f228723c7b8 100644 (file)
@@ -62,14 +62,6 @@ Message id header
 
 Complete from header of message
 
-=head2 from_addr
-
-  data_type: 'text'
-  default_value: (empty string)
-  is_nullable: 0
-
-Address(es) of From: headers
-
 =head2 to_complete
 
   data_type: 'text'
@@ -78,14 +70,6 @@ Address(es) of From: headers
 
 Complete to header of message
 
-=head2 to_addr
-
-  data_type: 'text'
-  default_value: (empty string)
-  is_nullable: 0
-
-Address(es) of To: header
-
 =head2 subject
 
   data_type: 'text'
@@ -139,12 +123,8 @@ __PACKAGE__->add_columns(
   { data_type => "text", default_value => "", is_nullable => 0 },
   "from_complete",
   { data_type => "text", default_value => "", is_nullable => 0 },
-  "from_addr",
-  { data_type => "text", default_value => "", is_nullable => 0 },
   "to_complete",
   { data_type => "text", default_value => "", is_nullable => 0 },
-  "to_addr",
-  { data_type => "text", default_value => "", is_nullable => 0 },
   "subject",
   { data_type => "text", default_value => "", is_nullable => 0 },
   "sent_date",
@@ -255,9 +235,13 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Dow6t1MS7ldAy6KBMtBWRQ
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-07 19:03:32
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n8U0vD9R8M5wFoeoLlIWeQ
 
+__PACKAGE__->many_to_many(bugs => 'bug_messages','bug');
+__PACKAGE__->many_to_many(correspondents => 'message_correspondents','correspondent');
+__PACKAGE__->many_to_many(references => 'message_refs_message','message');
+__PACKAGE__->many_to_many(referenced_by => 'message_refs_refs','message');
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
 1;
index 4820e3fe3dec25ebe9a7846d8772a9f529ba38b6..16550aa00b579f31e16145dda4068e9cbcac859a 100644 (file)
@@ -37,13 +37,6 @@ __PACKAGE__->table("message_correspondent");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'message_correspondent_id_seq'
-
 =head2 message
 
   data_type: 'integer'
@@ -64,7 +57,7 @@ Correspondent (matches correspondent)
 
   data_type: 'enum'
   default_value: 'to'
-  extra: {custom_type_name => "message_correspondent_type",list => ["to","from","envfrom","cc"]}
+  extra: {custom_type_name => "message_correspondent_type",list => ["to","from","envfrom","cc","recv"]}
   is_nullable: 0
 
 Type of correspondent (to, from, envfrom, cc, etc.)
@@ -72,13 +65,6 @@ Type of correspondent (to, from, envfrom, cc, etc.)
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "message_correspondent_id_seq",
-  },
   "message",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "correspondent",
@@ -89,24 +75,12 @@ __PACKAGE__->add_columns(
     default_value => "to",
     extra => {
       custom_type_name => "message_correspondent_type",
-      list => ["to", "from", "envfrom", "cc"],
+      list => ["to", "from", "envfrom", "cc", "recv"],
     },
     is_nullable => 0,
   },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<message_correspondent_message_correspondent_correspondent_t_idx>
@@ -161,8 +135,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiQOa7XliOu8PNC8DxQPnQ
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-07 19:03:32
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kIhya7skj4ZNM3DkC+gAPw
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index eb42652418746a5e32fa407564d2618fa7673a3e..8d695b7793ed52d45166fa8fcfffce07a2e06831 100644 (file)
@@ -37,13 +37,6 @@ __PACKAGE__->table("message_refs");
 
 =head1 ACCESSORS
 
-=head2 id
-
-  data_type: 'integer'
-  is_auto_increment: 1
-  is_nullable: 0
-  sequence: 'message_refs_id_seq'
-
 =head2 message
 
   data_type: 'integer'
@@ -79,13 +72,6 @@ TRUE if this message->ref came from In-Reply-To: or similar.
 =cut
 
 __PACKAGE__->add_columns(
-  "id",
-  {
-    data_type         => "integer",
-    is_auto_increment => 1,
-    is_nullable       => 0,
-    sequence          => "message_refs_id_seq",
-  },
   "message",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "refs",
@@ -96,18 +82,6 @@ __PACKAGE__->add_columns(
   { data_type => "boolean", default_value => \"false", is_nullable => 1 },
 );
 
-=head1 PRIMARY KEY
-
-=over 4
-
-=item * L</id>
-
-=back
-
-=cut
-
-__PACKAGE__->set_primary_key("id");
-
 =head1 UNIQUE CONSTRAINTS
 
 =head2 C<message_refs_message_refs_idx>
@@ -157,8 +131,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AYCyNKkqOAjoWVelU0HKrA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0YaAP/sB5N2Xr2rAFNK1lg
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index b9e80229e64586da72cdd1c4c52b8f7a2f1824e9..10266fa5c724c4832d2f25072b3613248165ab46 100644 (file)
@@ -57,7 +57,7 @@ Source package name
 
   data_type: 'boolean'
   default_value: false
-  is_nullable: 1
+  is_nullable: 0
 
 =head2 alias_of
 
@@ -71,26 +71,27 @@ Source package id which this source package is an alias of
 
   data_type: 'timestamp with time zone'
   default_value: current_timestamp
-  is_nullable: 1
+  is_nullable: 0
   original: {default_value => \"now()"}
 
 =head2 disabled
 
   data_type: 'timestamp with time zone'
-  is_nullable: 1
+  default_value: infinity
+  is_nullable: 0
 
 =head2 last_modified
 
   data_type: 'timestamp with time zone'
   default_value: current_timestamp
-  is_nullable: 1
+  is_nullable: 0
   original: {default_value => \"now()"}
 
 =head2 obsolete
 
   data_type: 'boolean'
   default_value: false
-  is_nullable: 1
+  is_nullable: 0
 
 =cut
 
@@ -105,27 +106,31 @@ __PACKAGE__->add_columns(
   "pkg",
   { data_type => "text", is_nullable => 0 },
   "pseduopkg",
-  { data_type => "boolean", default_value => \"false", is_nullable => 1 },
+  { data_type => "boolean", default_value => \"false", is_nullable => 0 },
   "alias_of",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
   "creation",
   {
     data_type     => "timestamp with time zone",
     default_value => \"current_timestamp",
-    is_nullable   => 1,
+    is_nullable   => 0,
     original      => { default_value => \"now()" },
   },
   "disabled",
-  { data_type => "timestamp with time zone", is_nullable => 1 },
+  {
+    data_type     => "timestamp with time zone",
+    default_value => "infinity",
+    is_nullable   => 0,
+  },
   "last_modified",
   {
     data_type     => "timestamp with time zone",
     default_value => \"current_timestamp",
-    is_nullable   => 1,
+    is_nullable   => 0,
     original      => { default_value => \"now()" },
   },
   "obsolete",
-  { data_type => "boolean", default_value => \"false", is_nullable => 1 },
+  { data_type => "boolean", default_value => \"false", is_nullable => 0 },
 );
 
 =head1 PRIMARY KEY
@@ -254,8 +259,8 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qJt8Dn/9gBxJKauPUCFS7w
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-04 10:59:03
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:j8LGu4eUfNUNxM/jkHUG2A
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration