added thingyrecord per-field pricing
This commit is contained in:
parent
3b63250cf4
commit
47c6aaa994
4 changed files with 179 additions and 13 deletions
|
|
@ -27,6 +27,7 @@ use WebGUI::Asset;
|
|||
my $toVersion = '7.7.14';
|
||||
my $quiet; # this line required
|
||||
|
||||
addFieldPriceToThingyRecord( $session );
|
||||
|
||||
my $session = start(); # this line required
|
||||
|
||||
|
|
@ -45,6 +46,21 @@ finish($session); # this line required
|
|||
#}
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the field price storage to ThingyRecord
|
||||
sub addFieldPriceToThingyRecord {
|
||||
my $session = shift;
|
||||
print "\tAdd field prices to ThingyRecord... " unless $quiet;
|
||||
|
||||
$session->db->write(
|
||||
"ALTER TABLE ThingyRecord ADD COLUMN fieldPrice LONGTEXT",
|
||||
);
|
||||
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue