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
|
|
@ -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 --------------------------------
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue