# - #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.06.00.022";
+$VERSION = "18.06.00.023";
sub version {
return $VERSION;
is_nullable: 1
size: [13,2]
+=head2 replacementprice
+
+ data_type: 'decimal'
+ is_nullable: 1
+ size: [28,6]
+
=head2 rrp_tax_excluded
data_type: 'decimal'
},
"rrp",
{ data_type => "decimal", is_nullable => 1, size => [13, 2] },
+ "replacementprice",
+ { data_type => "decimal", is_nullable => 1, size => [28, 6] },
"rrp_tax_excluded",
{ data_type => "decimal", is_nullable => 1, size => [28, 6] },
"rrp_tax_included",
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-06 14:12:40
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/CljC8eGYHoYM3506qYavg
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-08-31 11:51:37
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GQEXetlivZm7buQohl8m4A
# You can replace this text with custom code or comments, and it will be preserved on regeneration
+++ /dev/null
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
- if( !column_exists( 'aqorders', 'replacementprice' ){
- $dbh->do( "ALTER TABLE aqorders ADD COLUMN replacementprice DECIMAL(28,6)" );
- $dbh->do( "UPDATE aqorders set replacementprice = rrp WHERE replacementprice IS NULL" );
- }
- SetVersion( $DBversion );
- print "Upgrade to $DBversion done (Bug 18639 - Add replacementprice field to aqorders table)\n";
-}
print "Upgrade to $DBversion done (Bug 19383 - Add ability to print hold receipts automatically)\n";
}
+$DBversion = '18.06.00.023';
+if( CheckVersion( $DBversion ) ) {
+ if( !column_exists( 'aqorders', 'replacementprice' ) ){
+ $dbh->do( "ALTER TABLE aqorders ADD COLUMN replacementprice DECIMAL(28,6)" );
+ $dbh->do( "UPDATE aqorders set replacementprice = rrp WHERE replacementprice IS NULL" );
+ }
+ SetVersion( $DBversion );
+ print "Upgrade to $DBversion done (Bug 18639 - Add replacementprice field to aqorders table)\n";
+}
+
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.