diff --git a/docs/upgrades/upgrade_7.9.5-7.9.6.pl b/docs/upgrades/upgrade_7.9.5-7.9.6.pl index 70ee870d8..239572d71 100644 --- a/docs/upgrades/upgrade_7.9.5-7.9.6.pl +++ b/docs/upgrades/upgrade_7.9.5-7.9.6.pl @@ -32,6 +32,7 @@ my $session = start(); # this line required # upgrade functions go here fixConvertUTCMacroName($session); +dropOldEMSTableColumn($session); finish($session); # this line required @@ -57,6 +58,16 @@ sub fixConvertUTCMacroName { print "DONE!\n" unless $quiet; } +#---------------------------------------------------------------------------- +# Describe what our function does +sub dropOldEMSTableColumn { + my $session = shift; + print "\tDrop an old column from the EventMangementSystem table that is no longer used... " unless $quiet; + $session->db->write(q|ALTER TABLE EventManagementSystem DROP COLUMN groupToApproveEvents|); + # and here's our code + print "DONE!\n" unless $quiet; +} + # -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- diff --git a/t/Asset/Wobject/EventManagementSystem.t b/t/Asset/Wobject/EventManagementSystem.t index 10341bd7c..d395acf83 100644 --- a/t/Asset/Wobject/EventManagementSystem.t +++ b/t/Asset/Wobject/EventManagementSystem.t @@ -310,7 +310,6 @@ $templateMock->mock('process', sub { $templateVars = $_[1]; } ); 'stateChangedBy' => ignore(), 'lineage' => ignore(), 'className' => 'WebGUI::Asset::Wobject::EventManagementSystem', - 'groupToApproveEvents' => ignore(), 'lastModified' => ignore(), 'title' => 'Test EMS', 'groupIdView' => ignore(),