Remove an old database column from EMS mark 1.
This commit is contained in:
parent
77e331a129
commit
ce8b1dc63a
2 changed files with 11 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ my $session = start(); # this line required
|
||||||
|
|
||||||
# upgrade functions go here
|
# upgrade functions go here
|
||||||
fixConvertUTCMacroName($session);
|
fixConvertUTCMacroName($session);
|
||||||
|
dropOldEMSTableColumn($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
@ -57,6 +58,16 @@ sub fixConvertUTCMacroName {
|
||||||
print "DONE!\n" unless $quiet;
|
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 --------------------------------
|
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,6 @@ $templateMock->mock('process', sub { $templateVars = $_[1]; } );
|
||||||
'stateChangedBy' => ignore(),
|
'stateChangedBy' => ignore(),
|
||||||
'lineage' => ignore(),
|
'lineage' => ignore(),
|
||||||
'className' => 'WebGUI::Asset::Wobject::EventManagementSystem',
|
'className' => 'WebGUI::Asset::Wobject::EventManagementSystem',
|
||||||
'groupToApproveEvents' => ignore(),
|
|
||||||
'lastModified' => ignore(),
|
'lastModified' => ignore(),
|
||||||
'title' => 'Test EMS',
|
'title' => 'Test EMS',
|
||||||
'groupIdView' => ignore(),
|
'groupIdView' => ignore(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue