label is already stored in the options, and never used directly in any method. Code that wants it can instanciate an object

This commit is contained in:
Colin Kuskie 2008-02-22 19:08:32 +00:00
parent ac28252d53
commit 72177f762c
3 changed files with 21 additions and 1 deletions

View file

@ -25,6 +25,7 @@ my $session = start(); # this line required
# upgrade functions go here
insertCommerceTaxTable($session);
insertCommerceShipDriverTable($session);
migrateToNewCart($session);
finish($session); # this line required
@ -71,6 +72,23 @@ EOSQL
}
#-------------------------------------------------
sub insertCommerceShipDriverTable {
my $session = shift;
print "\tInstall the Commerce ShipperDriver Table.\n" unless ($quiet);
# and here's our code
$session->db->write(<<EOSQL);
CREATE TABLE shipper (
shipperId VARCHAR(22) binary NOT NULL,
className VARCHAR(255),
options mediumtext,
PRIMARY KEY (shipperId)
)
EOSQL
}
# --------------- DO NOT EDIT BELOW THIS LINE --------------------------------