Bug 11384: (follow-up) update DBIC schema classes
authorGalen Charlton <gmc@esilibrary.com>
Wed, 11 Dec 2013 16:55:31 +0000 (16:55 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 23 Dec 2013 16:15:59 +0000 (16:15 +0000)
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>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Koha/Schema/Result/CollectionTracking.pm

index 907ff68..424fa0f 100644 (file)
@@ -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