Added first name and last name address options for products.
This commit is contained in:
parent
77aec308c1
commit
2c41d60933
7 changed files with 58 additions and 21 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue