Bug 17813: DBIC update
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Dec 2016 18:57:54 +0000 (15:57 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 13:59:41 +0000 (13:59 +0000)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Schema/Result/BorrowerAttribute.pm

index 1406135..45ce0bf 100644 (file)
@@ -23,6 +23,12 @@ __PACKAGE__->table("borrower_attributes");
 
 =head1 ACCESSORS
 
+=head2 id
+
+  data_type: 'integer'
+  is_auto_increment: 1
+  is_nullable: 0
+
 =head2 borrowernumber
 
   data_type: 'integer'
@@ -45,6 +51,8 @@ __PACKAGE__->table("borrower_attributes");
 =cut
 
 __PACKAGE__->add_columns(
+  "id",
+  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
   "borrowernumber",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "code",
@@ -53,6 +61,18 @@ __PACKAGE__->add_columns(
   { data_type => "varchar", is_nullable => 1, size => 255 },
 );
 
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("id");
+
 =head1 RELATIONS
 
 =head2 borrowernumber
@@ -86,8 +106,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-25 18:09:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GfEFw+6mgaFw6Q8dktPtGw
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-12-08 04:41:27
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EarETnedFsmRmAAJAUrKGg
 
 
 # You can replace this text with custom content, and it will be preserved on regeneration