# - #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.045";
+$VERSION = "19.12.00.046";
sub version {
return $VERSION;
=head2 date
- data_type: 'date'
+ data_type: 'timestamp'
datetime_undef_if_invalid: 1
is_nullable: 1
"itemnumber",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"date",
- { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
+ {
+ data_type => "timestamp",
+ datetime_undef_if_invalid => 1,
+ is_nullable => 1,
+ },
"amount",
{ data_type => "decimal", is_nullable => 1, size => [28, 6] },
"description",
);
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-24 16:33:42
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q4Ahb8xIxAsjT/aF9yjrdQ
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-19 09:20:20
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BuE4CYsSH4BwXZoQKE2MWw
sub koha_objects_class {
'Koha::Account::Lines';
+++ /dev/null
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-
- $dbh->do( "ALTER TABLE accountlines MODIFY COLUMN date TIMESTAMP NULL" );
-
- SetVersion( $DBversion );
- print "Upgrade to $DBversion done (Bug 24818: Update 'accountlines.date' from DATE to TIMESTAMP)\n";
-}
print "Upgrade to $DBversion done (Bug 4461 - Add CollapseFieldsPatronAddForm system preference)\n";
}
+$DBversion = '19.12.00.046';
+if( CheckVersion( $DBversion ) ) {
+
+ $dbh->do( "ALTER TABLE accountlines MODIFY COLUMN date TIMESTAMP NULL" );
+
+ SetVersion( $DBversion );
+ print "Upgrade to $DBversion done (Bug 24818: Update 'accountlines.date' from DATE to TIMESTAMP)\n";
+}
+
# 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/';