Conflicts:
	lib/WebGUI/Asset/Wobject/Thingy.pm
This commit is contained in:
Doug Bell 2011-05-20 14:58:43 -05:00
commit 1fa911029d
5 changed files with 243 additions and 14 deletions

View file

@ -1,6 +1,10 @@
7.10.17
- fixed: Forced to use a PayDriver even with a balance of 0 in the cart.
- add #12134: Access metadata for assets inside an AssetReport
- fixed : Thingy CSV import not counting towards maxEntriesPerUser
- fixed : Thingy CSV new records not updated with createdById and dateCreated and ipAddress
- added : Thingy fields can now be set as unique and checked upon insert
- added : Thingy max entries of thingy records added
7.10.16
- fixed #12121: typ-o Asset_Map.templateIdEditPoint

View file

@ -31,6 +31,7 @@ my $quiet; # this line required
my $session = start(); # this line required
# upgrade functions go here
createThingyDBColumns($session);
finish($session); # this line required
@ -44,6 +45,21 @@ finish($session); # this line required
# print "DONE!\n" unless $quiet;
#}
#----------------------------------------------------------------------------
# Creates new column in tables for Thingy_fields and Thingy_things
sub createThingyDBColumns {
my $session = shift;
print "\tAdding db. columns Thingy_fields.isUnique and Thingy_things.maxEntriesTotal.." unless $quiet;
# and here's our code
my %tfHash = $session->db->quickHash("show columns from Thingy_fields where Field='isUnique'");
my %ttHash = $session->db->quickHash("show columns from Thingy_things where Field='maxEntriesTotal'");
unless ( $tfHash{'Field'}) { $session->db->write("alter table Thingy_fields add isUnique int(1) default 0"); }
unless ( $ttHash{'Field'}) { $session->db->write("alter table Thingy_things add maxEntriesTotal int default null"); }
print "DONE!\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------

View file

@ -35,7 +35,6 @@ addAddonsToAdminConsole($session);
finish($session); # this line required
#----------------------------------------------------------------------------
# Describe what our function does
sub addAddonsToAdminConsole {