Bugzilla – Attachment 38429 Details for
Bug 13790
Add unique id issue_id to issues and old_issues tables
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The script we use to update the schema didn't like the checksum
Bug-13790-RM-followup-DBIx-updates.patch (text/plain), 3.06 KB, created by
Tomás Cohen Arazi (tcohen)
on 2015-04-23 16:07:21 UTC
(
hide
)
Description:
The script we use to update the schema didn't like the checksum
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2015-04-23 16:07:21 UTC
Size:
3.06 KB
patch
obsolete
>From 59b15eb2212786625f9843d7b09100f91eb3a4ed Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Thu, 23 Apr 2015 13:06:00 -0300 >Subject: [PATCH] Bug 13790: (RM followup) DBIx updates > >Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> >--- > Koha/Schema/Result/Issue.pm | 24 ++++++++++++++++++++++-- > Koha/Schema/Result/OldIssue.pm | 23 +++++++++++++++++++++-- > 2 files changed, 43 insertions(+), 4 deletions(-) > >diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm >index b368b5b..0a0eb17 100644 >--- a/Koha/Schema/Result/Issue.pm >+++ b/Koha/Schema/Result/Issue.pm >@@ -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", >diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm >index 62354e5..6daaa40 100644 >--- a/Koha/Schema/Result/OldIssue.pm >+++ b/Koha/Schema/Result/OldIssue.pm >@@ -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 >-- >2.3.6
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13790
:
36441
|
36442
|
37108
|
37109
|
37709
|
37710
|
38073
|
38081
|
38082
|
38155
|
38156
|
38157
|
38158
|
38182
|
38184
|
38349
|
38350
|
38351
|
38352
|
38353
|
38354
| 38429