Reorganize AdSpace properties for prices and permissions.

Remove click and impression prices.  Remove groupToPurchase.
Expose minimum clicks and impressions to the UI.
This commit is contained in:
Colin Kuskie 2009-09-02 10:42:29 -07:00
parent 7b15f13ffb
commit fe253042ea
4 changed files with 62 additions and 23 deletions

View file

@ -31,6 +31,7 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
reorganizeAdSpaceProperties($session);
finish($session); # this line required
@ -44,6 +45,18 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
#----------------------------------------------------------------------------
# Describe what our function does
sub reorganizeAdSpaceProperties {
my $session = shift;
print "\tReorganize AdSpace and Ad Sales properties... " unless $quiet;
$session->db->write(q|ALTER TABLE adSpace DROP COLUMN costPerClick|);
$session->db->write(q|ALTER TABLE adSpace DROP COLUMN costPerImpression|);
$session->db->write(q|ALTER TABLE adSpace DROP COLUMN groupToPurchase|);
# and here's our code
print "DONE!\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------