fixed: DataForm entry table isn't properly indexed
This commit is contained in:
parent
d12f0d2e30
commit
d9cec8ff94
2 changed files with 11 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
- fixed: Documentation for DataForm and Thingy updated for Possible Values field
|
- fixed: Documentation for DataForm and Thingy updated for Possible Values field
|
||||||
- added a new permission denied page for version tag approval
|
- added a new permission denied page for version tag approval
|
||||||
- fixed: Shortcuts includes HTML head data twice
|
- fixed: Shortcuts includes HTML head data twice
|
||||||
|
- fixed: DataForm entry table isn't properly indexed
|
||||||
|
|
||||||
7.6.0
|
7.6.0
|
||||||
- added: users may now customize the post received page for the CS
|
- added: users may now customize the post received page for the CS
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ my $session = start(); # this line required
|
||||||
|
|
||||||
addExportExtensionsToConfigFile($session);
|
addExportExtensionsToConfigFile($session);
|
||||||
fixShortAssetIds( $session );
|
fixShortAssetIds( $session );
|
||||||
|
addDataFormDataIndexes($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
@ -73,6 +74,15 @@ sub fixShortAssetIds {
|
||||||
print "Done.\n" unless $quiet;
|
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 --------------------------------
|
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue