Add code to install the FilePump table.
This commit is contained in:
parent
821ac7fd10
commit
08ea05486e
1 changed files with 14 additions and 1 deletions
|
|
@ -16,7 +16,10 @@ use strict;
|
|||
use Pod::Usage;
|
||||
use Getopt::Long;
|
||||
use WebGUI::Session;
|
||||
use WebGUI::ProfileField;
|
||||
use WebGUI::Utility;
|
||||
use WebGUI::FilePump::Bundle;
|
||||
|
||||
my $quiet = 0;
|
||||
|
||||
# Get parameters here, including $help
|
||||
GetOptions(
|
||||
|
|
@ -32,6 +35,7 @@ pod2usage( msg => "Must specify a config file!" ) unless $configFile;
|
|||
my $session = start( $webguiRoot, $configFile );
|
||||
|
||||
installFilePumpHandler($session);
|
||||
installFilePumpTable($session);
|
||||
|
||||
# Do your work here
|
||||
finish($session);
|
||||
|
|
@ -67,6 +71,15 @@ sub installFilePumpHandler {
|
|||
print "Done.\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub installFilePumpTable {
|
||||
my $session = shift;
|
||||
print "\tAdding FilePump database table via CRUD... \n" unless $quiet;
|
||||
##Content Handler
|
||||
WebGUI::FilePump::Bundle->crud_createTable($session);
|
||||
print "Done.\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub start {
|
||||
my $webguiRoot = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue