# - #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 = "16.06.00.018";
+$VERSION = "16.06.00.019";
sub version {
return $VERSION;
=head2 approved
data_type: 'tinyint'
+ default_value: 0
is_nullable: 1
=head2 datereviewed
"review",
{ data_type => "text", is_nullable => 1 },
"approved",
- { data_type => "tinyint", is_nullable => 1 },
+ { data_type => "tinyint", default_value => 0, is_nullable => 1 },
"datereviewed",
{
data_type => "datetime",
);
-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u+R08bCdVQA697aPo9zEUA
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-09-09 10:38:09
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZjW8uHIL0m7+pwOTE0pcxQ
# You can replace this text with custom content, and it will be preserved on regeneration
+++ /dev/null
-ALTER TABLE reviews CHANGE COLUMN approved approved tinyint(4) DEFAULT 0;
-UPDATE reviews SET approved=0 WHERE approved IS NULL;
SetVersion($DBversion);
}
+$DBversion = "16.06.00.019";
+if ( CheckVersion($DBversion) ) {
+ $dbh->do(q{
+ ALTER TABLE reviews CHANGE COLUMN approved approved tinyint(4) DEFAULT 0;
+ });
+ $dbh->do(q{
+ UPDATE reviews SET approved=0 WHERE approved IS NULL;
+ });
+
+ print "Upgrade to $DBversion done (Bug 15839 - Move the reviews related code to Koha::Reviews)\n";
+ SetVersion($DBversion);
+}
+
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.