# - #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.020";
+$VERSION = "18.12.00.021";
sub version {
return $VERSION;
is_nullable: 1
size: [28,6]
+=head2 rentalcharge_daily
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
+=head2 rentalcharge_hourly
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
=head2 defaultreplacecost
data_type: 'decimal'
{ data_type => "longtext", is_nullable => 1 },
"rentalcharge",
{ data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "rentalcharge_daily",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+ "rentalcharge_hourly",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
"defaultreplacecost",
{ data_type => "decimal", is_nullable => 1, size => [28, 6] },
"processfee",
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-05 14:29:17
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GthTVMBLO5Zi6NU3up3m+A
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-07 17:30:46
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CDIOU6LmF7suaujk1NQOeg
# Use the ItemtypeLocalization view to create the join on localization
our $LANGUAGE;
+++ /dev/null
-$DBversion = 'XXX'; # will be replaced by the RM
-if ( CheckVersion($DBversion) ) {
-
- if ( !column_exists( 'itemtypes', 'rentalcharge_daily' ) ) {
- $dbh->do("ALTER TABLE `itemtypes` ADD COLUMN `rentalcharge_daily` decimal(28,6) default NULL AFTER `rentalcharge`");
- }
-
- if ( !column_exists( 'itemtypes', 'rentalcharge_hourly' ) ) {
- $dbh->do("ALTER TABLE `itemtypes` ADD COLUMN `rentalcharge_hourly` decimal(28,6) default NULL AFTER `rentalcharge_daily`");
- }
-
- if ( column_exists( 'itemtypes', 'rental_charge_daily' ) ) {
- $dbh->do("UPDATE `itemtypes` SET `rentalcharge_daily` = `rental_charge_daily`");
- $dbh->do("ALTER TABLE `itemtypes` DROP COLUMN `rental_charge_daily`");
- }
-
- SetVersion($DBversion);
- print "Upgrade to $DBversion done (Bug 20912 - Support granular rental charges)\n";
-}
print "Upgrade to $DBversion done (Bug 18925 - Move maxissueqty and maxonsiteissueqty to circulation_rules)\n";
}
+$DBversion = '18.12.00.021';
+if ( CheckVersion($DBversion) ) {
+
+ if ( !column_exists( 'itemtypes', 'rentalcharge_daily' ) ) {
+ $dbh->do("ALTER TABLE `itemtypes` ADD COLUMN `rentalcharge_daily` decimal(28,6) default NULL AFTER `rentalcharge`");
+ }
+
+ if ( !column_exists( 'itemtypes', 'rentalcharge_hourly' ) ) {
+ $dbh->do("ALTER TABLE `itemtypes` ADD COLUMN `rentalcharge_hourly` decimal(28,6) default NULL AFTER `rentalcharge_daily`");
+ }
+
+ if ( column_exists( 'itemtypes', 'rental_charge_daily' ) ) {
+ $dbh->do("UPDATE `itemtypes` SET `rentalcharge_daily` = `rental_charge_daily`");
+ $dbh->do("ALTER TABLE `itemtypes` DROP COLUMN `rental_charge_daily`");
+ }
+
+ SetVersion($DBversion);
+ print "Upgrade to $DBversion done (Bug 20912 - Support granular rental charges)\n";
+}
+
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.