Bug 16829 - DBRev 16.06.00.014

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2016-08-17 18:03:50 +00:00
parent 3a7aaf1339
commit 0caed05779
3 changed files with 15 additions and 15 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 = "16.06.00.013";
$VERSION = "16.06.00.014";
sub version {
return $VERSION;

View File

@ -1,14 +0,0 @@
ALTER TABLE `action_logs` ADD COLUMN `interface` VARCHAR(30) DEFAULT NULL AFTER `info`;
ALTER TABLE `action_logs` ADD KEY `interface` (`interface`);
-- $DBversion = "16.06.00.XXX";
-- if ( CheckVersion($DBversion) ) {
-- $dbh->do(q{
-- ALTER TABLE `action_logs` ADD COLUMN `interface` VARCHAR(30) DEFAULT NULL AFTER `info`;
-- });
-- $dbh->do({
-- ALTER TABLE `action_logs` ADD KEY `interface` (`interface`);
-- });
-- print "Upgrade to $DBversion done (Bug 16829: action_logs should have an 'interface' column)\n";
-- SetVersion($DBversion);
-- }

View File

@ -12807,6 +12807,20 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "16.06.00.014";
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
ALTER TABLE `action_logs` ADD COLUMN `interface` VARCHAR(30) DEFAULT NULL AFTER `info`;
});
$dbh->do(q{
ALTER TABLE `action_logs` ADD KEY `interface` (`interface`);
});
print "Upgrade to $DBversion done (Bug 16829: action_logs should have an 'interface' column)\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.