fixed: DataForm entry table isn't properly indexed

This commit is contained in:
Graham Knop 2008-10-05 19:42:56 +00:00
parent d12f0d2e30
commit d9cec8ff94
2 changed files with 11 additions and 0 deletions

View file

@ -9,6 +9,7 @@
- fixed: Documentation for DataForm and Thingy updated for Possible Values field
- added a new permission denied page for version tag approval
- fixed: Shortcuts includes HTML head data twice
- fixed: DataForm entry table isn't properly indexed
7.6.0
- added: users may now customize the post received page for the CS

View file

@ -30,6 +30,7 @@ my $session = start(); # this line required
addExportExtensionsToConfigFile($session);
fixShortAssetIds( $session );
addDataFormDataIndexes($session);
finish($session); # this line required
@ -73,6 +74,15 @@ sub fixShortAssetIds {
print "Done.\n" unless $quiet;
}
sub addDataFormDataIndexes {
my $session = shift;
print "\tAssing indexes to DataForm entry table... " unless $quiet;
$session->db->write('ALTER TABLE `DataForm_entry` ADD INDEX `assetId` (`assetId`)');
$session->db->write('ALTER TABLE `DataForm_entry` ADD INDEX `assetId_submissionDate` (`assetId`,`submissionDate`)');
print "Done.\n" unless $quiet;
}
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
#----------------------------------------------------------------------------