Added first name and last name address options for products.

This commit is contained in:
Kaleb Murphy 2008-07-29 20:46:17 +00:00
parent 77aec308c1
commit 2c41d60933
7 changed files with 58 additions and 21 deletions

View file

@ -30,7 +30,7 @@ my $session = start(); # this line required
# upgrade functions go here
addNewInboxIndexes( $session );
updateAddressTable( $session );
finish($session); # this line required
@ -43,6 +43,16 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
#----------------------------------------------------------------------------
# Removes the name field and adds a firstName and lastName field
sub updateAddressTable{
my $session = shift;
print "\tUpdating TABLE address... " unless $quiet;
$session->db->write("ALTER TABLE 'address' DROP COLUMN 'name';");
$session->db->write("ALTER TABLE 'address' ADD COLUMN 'firstName' VARCHAR(35) AFTER 'label', ADD COLUMN 'lastName' VARCHAR(35) AFTER 'firstName';");
print "\tDone.\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Add new indexes to the inbox to make millions of messages possible
sub addNewInboxIndexes {