Bugzilla – Attachment 23435 Details for
Bug 11384
Koha should not use "ctid" as a column name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11384: (follow-up) update DBIC schema classes
Bug-11384-follow-up-update-DBIC-schema-classes.patch (text/plain), 2.13 KB, created by
Galen Charlton
on 2013-12-11 17:04:15 UTC
(
hide
)
Description:
Bug 11384: (follow-up) update DBIC schema classes
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2013-12-11 17:04:15 UTC
Size:
2.13 KB
patch
obsolete
>From ae083ed116a6f693138c31b524c89c7ff71e7068 Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmc@esilibrary.com> >Date: Wed, 11 Dec 2013 16:55:31 +0000 >Subject: [PATCH] Bug 11384: (follow-up) update DBIC schema classes > >This patch updates the DBIC schema class for CollectionTracking >to reflect the new name of its primary key column. > >To test: > >The CollectionTracking class is not currently used, but >if you *really* want to test this, take a look at the following >branch: http://git.librarypolice.com/?p=koha-galen.git;a=shortlog;h=refs/heads/pg > >Then, set up a PostgreSQL database, update koha-conf.xml to point to it, >then run pg/deploy and verify that the collections_tracking table is created >in the Pg database. > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >--- > Koha/Schema/Result/CollectionTracking.pm | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > >diff --git a/Koha/Schema/Result/CollectionTracking.pm b/Koha/Schema/Result/CollectionTracking.pm >index 907ff68..424fa0f 100644 >--- a/Koha/Schema/Result/CollectionTracking.pm >+++ b/Koha/Schema/Result/CollectionTracking.pm >@@ -23,7 +23,7 @@ __PACKAGE__->table("collections_tracking"); > > =head1 ACCESSORS > >-=head2 ctid >+=head2 collections_tracking_id > > data_type: 'integer' > is_auto_increment: 1 >@@ -48,7 +48,7 @@ items.itemnumber > =cut > > __PACKAGE__->add_columns( >- "ctid", >+ "collections_tracking_id", > { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, > "colid", > { data_type => "integer", default_value => 0, is_nullable => 0 }, >@@ -60,17 +60,17 @@ __PACKAGE__->add_columns( > > =over 4 > >-=item * L</ctid> >+=item * L</collections_tracking_id> > > =back > > =cut > >-__PACKAGE__->set_primary_key("ctid"); >+__PACKAGE__->set_primary_key("collections_tracking_id"); > > >-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:izGaZGUJvwrRTQOCotopUg >+# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-12-11 16:55:09 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CAKCBAZ44Q6yAS2IKOMNlA > > > # You can replace this text with custom content, and it will be preserved on regeneration >-- >1.7.10.4
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 11384
:
23434
|
23435
|
23769
|
23770
|
23776
|
23777
|
25154