Bug 13790: (RM followup) DBIx updates
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 23 Apr 2015 16:06:00 +0000 (13:06 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 23 Apr 2015 16:06:00 +0000 (13:06 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/Schema/Result/Issue.pm
Koha/Schema/Result/OldIssue.pm

index b368b5b..0a0eb17 100644 (file)
@@ -23,6 +23,12 @@ __PACKAGE__->table("issues");
 
 =head1 ACCESSORS
 
+=head2 issue_id
+
+  data_type: 'integer'
+  is_auto_increment: 1
+  is_nullable: 0
+
 =head2 borrowernumber
 
   data_type: 'integer'
@@ -98,6 +104,8 @@ __PACKAGE__->table("issues");
 =cut
 
 __PACKAGE__->add_columns(
+  "issue_id",
+  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
   "borrowernumber",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
   "itemnumber",
@@ -145,6 +153,18 @@ __PACKAGE__->add_columns(
   { data_type => "integer", default_value => 0, is_nullable => 0 },
 );
 
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</issue_id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("issue_id");
+
 =head1 RELATIONS
 
 =head2 borrowernumber
@@ -188,8 +208,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-13 10:32:46
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0OEqB+pEZ2LV083bMk9xHA
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-23 13:04:51
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3JH0+3CuwwhPyebyt/z+uw
 
 __PACKAGE__->belongs_to(
     "borrower",
index 62354e5..6daaa40 100644 (file)
@@ -23,6 +23,11 @@ __PACKAGE__->table("old_issues");
 
 =head1 ACCESSORS
 
+=head2 issue_id
+
+  data_type: 'integer'
+  is_nullable: 0
+
 =head2 borrowernumber
 
   data_type: 'integer'
@@ -98,6 +103,8 @@ __PACKAGE__->table("old_issues");
 =cut
 
 __PACKAGE__->add_columns(
+  "issue_id",
+  { data_type => "integer", is_nullable => 0 },
   "borrowernumber",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
   "itemnumber",
@@ -145,6 +152,18 @@ __PACKAGE__->add_columns(
   { data_type => "integer", default_value => 0, is_nullable => 0 },
 );
 
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</issue_id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("issue_id");
+
 =head1 RELATIONS
 
 =head2 borrowernumber
@@ -188,8 +207,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-13 10:32:46
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uJ9927OIBB4Q4f4FCV9EDg
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-04-23 13:04:51
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9GdzytyInRcFZns/q0qb3Q
 
 
 # You can replace this text with custom content, and it will be preserved on regeneration