@@ -48,11 +48,11 @@ class Migration(migrations.Migration):
4848 ('created' , models .DateTimeField (auto_now_add = True , db_index = True )),
4949 ('resource_guid' , models .CharField (blank = True , db_index = True , default = '' , max_length = 255 )),
5050 ('path' , models .TextField (blank = True , default = '' )),
51- ('download_type' , models .CharField (choices = [('file' , 'Single file' ), ('folder_zip' , 'Folder zip' ), ('project' , 'Whole-project zip' )], db_index = True , max_length = 16 )),
51+ ('download_type' , models .CharField (choices = [('file' , 'Single file' ), ('folder_zip' , 'Folder zip' ), ('project' , 'Whole-project zip' )], max_length = 16 )),
5252 ('zip_completed' , models .BooleanField (blank = True , null = True )),
5353 ('size_bytes' , models .BigIntegerField (blank = True , null = True )),
54- ('storage_region' , models .CharField (blank = True , db_index = True , default = '' , max_length = 64 )),
55- ('user_region' , models .CharField (blank = True , db_index = True , default = '' , max_length = 64 )),
54+ ('storage_region' , models .CharField (blank = True , default = '' , max_length = 64 )),
55+ ('user_region' , models .CharField (blank = True , default = '' , max_length = 64 )),
5656 ('ip' , models .GenericIPAddressField (blank = True , null = True )),
5757 ('source_area' , models .CharField (blank = True , default = '' , max_length = 128 )),
5858 ('user' , models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .SET_NULL , related_name = 'download_events' , to = 'osf.osfuser' )),
@@ -66,5 +66,9 @@ class Migration(migrations.Migration):
6666 model_name = 'downloadevent' ,
6767 index = models .Index (fields = ['created' , 'storage_region' ], name = 'download_event_crt_regn' ),
6868 ),
69+ migrations .AddIndex (
70+ model_name = 'downloadevent' ,
71+ index = models .Index (fields = ['created' , 'user_region' ], name = 'download_event_crt_user' ),
72+ ),
6973 migrations .RunPython (create_dashboard_group , remove_dashboard_group ),
7074 ]
0 commit comments