Bug 11584: DBRev 3.21.00.21

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2015-08-28 10:36:11 -03:00
parent 16a83aa7a6
commit 9b2e4d9666
3 changed files with 12 additions and 3 deletions

View file

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #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 = "3.21.00.020";
$VERSION = "3.21.00.021";
sub version {
return $VERSION;

View file

@ -1 +0,0 @@
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo');

View file

@ -10779,13 +10779,23 @@ if ( CheckVersion($DBversion) ) {
$DBversion = "3.21.00.020";
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
INSERT INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`)
INSERT IGNORE INTO `systempreferences` (`variable`, `value`, `options`, `explanation`, `type`)
VALUES ('FeeOnChangePatronCategory','1','','If set, when a patron changes to a category with enrolment fee, a fee is charged','YesNo')
});
print "Upgrade to $DBversion done (Bug 13697: Option to don't charge a fee, if the patron changes to a category with enrolment fee)\n";
SetVersion($DBversion);
}
$DBversion = "3.21.00.021";
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
VALUES ('UseWYSIWYGinSystemPreferences','0','','Show WYSIWYG editor when editing certain HTML system preferences.','YesNo')
});
print "Upgrade to $DBversion done (Bug 11584: Add wysiwyg editor to system preferences dealing with HTML)\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.