# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
-$VERSION = "16.12.00.001";
+$VERSION = "16.12.00.002";
sub version {
return $VERSION;
=head1 ACCESSORS
+=head2 branchtransfer_id
+
+ data_type: 'integer'
+ is_auto_increment: 1
+ is_nullable: 0
+
=head2 itemnumber
data_type: 'integer'
=cut
__PACKAGE__->add_columns(
+ "branchtransfer_id",
+ { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
"itemnumber",
{
data_type => "integer",
{ data_type => "mediumtext", is_nullable => 1 },
);
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</branchtransfer_id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("branchtransfer_id");
+
=head1 RELATIONS
=head2 frombranch
);
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NPbH+5o2BVPj8yeoUqEavw
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 12:22:24
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8cnatLrGkNwyTo35PCOm2A
# You can replace this text with custom content, and it will be preserved on regeneration
+++ /dev/null
-$DBversion = '16.12.00.XXX';
-if ( CheckVersion($DBversion) ) {
- unless (column_exists( 'branchtransfers', 'branchtransfer_id' )
- and index_exists( 'branchtransfers', 'PRIMARY' ) )
- {
- $dbh->do(
- "ALTER TABLE branchtransfers
- ADD COLUMN branchtransfer_id int(12) NOT NULL auto_increment FIRST, ADD CONSTRAINT PRIMARY KEY (branchtransfer_id);"
- );
- }
-
- # Always end with this (adjust the bug info)
- SetVersion($DBversion);
- print "Upgrade to $DBversion done (Bug 14187: branchtransfer needs a primary key (id) for DBIx and common sense.)\n";
-}
SetVersion($DBversion);
}
+$DBversion = '16.12.00.002';
+if ( CheckVersion($DBversion) ) {
+ unless (column_exists( 'branchtransfers', 'branchtransfer_id' )
+ and index_exists( 'branchtransfers', 'PRIMARY' ) )
+ {
+ $dbh->do(
+ "ALTER TABLE branchtransfers
+ ADD COLUMN branchtransfer_id int(12) NOT NULL auto_increment FIRST, ADD CONSTRAINT PRIMARY KEY (branchtransfer_id);"
+ );
+ }
+
+ SetVersion($DBversion);
+ print "Upgrade to $DBversion done (Bug 14187 - branchtransfer needs a primary key (id) for DBIx and common sense.)\n";
+}
+
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.