Bug 21753: DBRev 18.12.00.007

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2019-01-04 03:08:14 +00:00
parent 277bd25b45
commit 4e6d64c163
4 changed files with 12 additions and 21 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #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 = "18.12.00.006";
$VERSION = "18.12.00.007";
sub version {
return $VERSION;

View File

@ -97,12 +97,6 @@ __PACKAGE__->table("issuingrules");
data_type: 'integer'
is_nullable: 1
=head2 chargename
data_type: 'varchar'
is_nullable: 1
size: 100
=head2 maxissueqty
data_type: 'integer'
@ -261,8 +255,6 @@ __PACKAGE__->add_columns(
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
"accountsent",
{ data_type => "integer", is_nullable => 1 },
"chargename",
{ data_type => "varchar", is_nullable => 1, size => 100 },
"maxissueqty",
{ data_type => "integer", is_nullable => 1 },
"maxonsiteissueqty",
@ -336,8 +328,8 @@ __PACKAGE__->add_columns(
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-11-08 17:41:17
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vOr4mEAacS5WKLQifgT8EA
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2019-01-04 03:06:35
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:slPyHZs0YvOKev3cAxdDJQ
# You can replace this text with custom code or comments, and it will be preserved on regeneration

View File

@ -1,10 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
if( column_exists( 'issuingrules', 'chargename' ) ) {
$dbh->do( "ALTER TABLE issuingrules DROP chargename" );
}
# Always end with this (adjust the bug info)
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 21753: Drop chargename from issuingrules )\n";
}

View File

@ -17235,6 +17235,15 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 21915 - Add a way to automatically reconcile balance for patrons)\n";
}
$DBversion = '18.12.00.007';
if( CheckVersion( $DBversion ) ) {
if( column_exists( 'issuingrules', 'chargename' ) ) {
$dbh->do( "ALTER TABLE issuingrules DROP chargename" );
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 21753: Drop chargename from issuingrules )\n";
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.