# - #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 = "19.12.00.052";
+$VERSION = "19.12.00.053";
sub version {
return $VERSION;
data_type: 'timestamp'
datetime_undef_if_invalid: 1
- default_value: 'current_timestamp()'
+ default_value: current_timestamp
is_nullable: 0
=head2 lastseen
{
data_type => "timestamp",
datetime_undef_if_invalid => 1,
- default_value => "current_timestamp()",
+ default_value => \"current_timestamp",
is_nullable => 0,
},
"lastseen",
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-23 11:45:25
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SkCqcE0Wpja6r/hZ0yZLNA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-24 11:25:33
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6G2Szd+G4io5YH4nsxr2eg
__PACKAGE__->add_columns(
'+anonymized' => { is_boolean => 1 },
data_type: 'timestamp'
datetime_undef_if_invalid: 1
- default_value: 'current_timestamp()'
+ default_value: current_timestamp
is_nullable: 0
=head2 lastseen
{
data_type => "timestamp",
datetime_undef_if_invalid => 1,
- default_value => "current_timestamp()",
+ default_value => \"current_timestamp",
is_nullable => 0,
},
"lastseen",
);
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-23 11:45:25
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fVl4c/8pymGaZBDR3EOrNg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-24 11:25:33
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kWv72D508m4D23rxA7QKCw
__PACKAGE__->add_columns(
'+anonymized' => { is_boolean => 1 },
+++ /dev/null
-$DBversion = 'XXX';
-if( CheckVersion( $DBversion ) ) {
- unless( column_exists('borrowers','autorenew_checkouts') ){
- $dbh->do( "ALTER TABLE borrowers ADD COLUMN autorenew_checkouts TINYINT(1) NOT NULL DEFAULT 1 AFTER anonymized" );
- }
- unless( column_exists('deletedborrowers','autorenew_checkouts') ){
- $dbh->do( "ALTER TABLE deletedborrowers ADD COLUMN autorenew_checkouts TINYINT(1) NOT NULL DEFAULT 1 AFTER anonymized" );
- }
- $dbh->do(q{
- INSERT IGNORE INTO systempreferences
- ( `variable`, `value`, `options`, `explanation`, `type` )
- VALUES
- ('AllowPatronToControlAutorenewal','0',NULL,'If enabled, patrons will have a field in their account to choose whether their checkouts are auto renewed or not','YesNo')
- });
- SetVersion( $DBversion );
- print "Upgrade to $DBversion done (Bug 24476 - Allow patrons to opt-out of autorenewal)\n";
-}
NewVersion( $DBversion, 21443, "Add ability to exclude holidays when calculating rentals fees by time period");
}
+$DBversion = '19.12.00.053';
+if( CheckVersion( $DBversion ) ) {
+ unless( column_exists('borrowers','autorenew_checkouts') ){
+ $dbh->do( "ALTER TABLE borrowers ADD COLUMN autorenew_checkouts TINYINT(1) NOT NULL DEFAULT 1 AFTER anonymized" );
+ }
+ unless( column_exists('deletedborrowers','autorenew_checkouts') ){
+ $dbh->do( "ALTER TABLE deletedborrowers ADD COLUMN autorenew_checkouts TINYINT(1) NOT NULL DEFAULT 1 AFTER anonymized" );
+ }
+ $dbh->do(q{
+ INSERT IGNORE INTO systempreferences
+ ( `variable`, `value`, `options`, `explanation`, `type` )
+ VALUES
+ ('AllowPatronToControlAutorenewal','0',NULL,'If enabled, patrons will have a field in their account to choose whether their checkouts are auto renewed or not','YesNo')
+ });
+
+ NewVersion( $DBversion, 24476, "Allow patrons to opt-out of autorenewal");
+}
+
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';