X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FDB%2FResult%2FSrcVer.pm;h=cd99a165fa884ce3361d33e0648a33cbfbee3194;hb=e37255f8eb68d4efc64ca29c31fdb1c8b51eb458;hp=02177e997ce1f5231532335abcdc10d5876e0ca5;hpb=e0933051cef0055c66bc913e88739f086f6e2630;p=debbugs.git diff --git a/Debbugs/DB/Result/SrcVer.pm b/Debbugs/DB/Result/SrcVer.pm index 02177e9..cd99a16 100644 --- a/Debbugs/DB/Result/SrcVer.pm +++ b/Debbugs/DB/Result/SrcVer.pm @@ -6,7 +6,7 @@ package Debbugs::DB::Result::SrcVer; =head1 NAME -Debbugs::DB::Result::SrcVer +Debbugs::DB::Result::SrcVer - Source Package versions =cut @@ -42,23 +42,31 @@ __PACKAGE__->table("src_ver"); is_nullable: 0 sequence: 'src_ver_id_seq' -=head2 src_pkg_id +Source package version id + +=head2 src_pkg data_type: 'integer' is_foreign_key: 1 is_nullable: 0 +Source package id (matches src_pkg table) + =head2 ver data_type: 'debversion' is_nullable: 0 +Version of the source package + =head2 maintainer_id data_type: 'integer' is_foreign_key: 1 is_nullable: 1 +Maintainer id (matches maintainer table) + =head2 upload_date data_type: 'timestamp with time zone' @@ -66,12 +74,16 @@ __PACKAGE__->table("src_ver"); is_nullable: 0 original: {default_value => \"now()"} +Date this version of the source package was uploaded + =head2 based_on data_type: 'integer' is_foreign_key: 1 is_nullable: 1 +Source package version this version is based on + =cut __PACKAGE__->add_columns( @@ -82,7 +94,7 @@ __PACKAGE__->add_columns( is_nullable => 0, sequence => "src_ver_id_seq", }, - "src_pkg_id", + "src_pkg", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "ver", { data_type => "debversion", is_nullable => 0 }, @@ -117,7 +129,7 @@ __PACKAGE__->set_primary_key("id"); =over 4 -=item * L +=item * L =item * L @@ -125,7 +137,7 @@ __PACKAGE__->set_primary_key("id"); =cut -__PACKAGE__->add_unique_constraint("src_ver_src_pkg_id_ver", ["src_pkg_id", "ver"]); +__PACKAGE__->add_unique_constraint("src_ver_src_pkg_id_ver", ["src_pkg", "ver"]); =head1 RELATIONS @@ -225,7 +237,7 @@ Related object: L __PACKAGE__->belongs_to( "src_pkg", "Debbugs::DB::Result::SrcPkg", - { id => "src_pkg_id" }, + { id => "src_pkg" }, { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); @@ -245,8 +257,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-25 00:09:07 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1YjejvJjXTE1Q6OjD5x9zg +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hhXOPJ8se5BVKMsbvf+szw # You can replace this text with custom code or comments, and it will be preserved on regeneration