@@ -26,7 +26,7 @@ private async Task Csv2Mysql(string fileName,
2626 await connection . OpenAsync ( ) ;
2727
2828 var command = connection . CreateCommand ( ) ;
29- command . CommandTimeout = 420 ;
29+ command . CommandTimeout = 840 ;
3030
3131 command . CommandText = @$ "
3232DROP TABLE IF EXISTS { tempTable } ;
@@ -66,7 +66,7 @@ private async Task ContinueCsv2Mysql(string fileName,
6666 await connection . OpenAsync ( ) ;
6767
6868 var command = connection . CreateCommand ( ) ;
69- command . CommandTimeout = 360 ;
69+ command . CommandTimeout = 840 ;
7070
7171 command . CommandText = @$ "
7272SET FOREIGN_KEY_CHECKS = 0;
@@ -93,7 +93,7 @@ private async Task FixDsstatsForeignKey(string connectionString)
9393 await connection . OpenAsync ( ) ;
9494
9595 var command = connection . CreateCommand ( ) ;
96- command . CommandTimeout = 420 ;
96+ command . CommandTimeout = 840 ;
9797
9898 command . CommandText = @$ "ALTER TABLE { nameof ( ReplayContext . PlayerRatingChanges ) } DROP FOREIGN KEY FK_PlayerRatingChanges_PlayerRatings_PlayerRatingId;
9999ALTER TABLE { nameof ( ReplayContext . PlayerRatingChanges ) } ADD CONSTRAINT FK_PlayerRatingChanges_PlayerRatings_PlayerRatingId
@@ -115,7 +115,7 @@ private async Task FixArcadeForeignKey(string connectionString)
115115 await connection . OpenAsync ( ) ;
116116
117117 var command = connection . CreateCommand ( ) ;
118- command . CommandTimeout = 360 ;
118+ command . CommandTimeout = 840 ;
119119
120120 command . CommandText = @$ "ALTER TABLE { nameof ( ReplayContext . ArcadePlayerRatingChanges ) } DROP FOREIGN KEY `FK_ArcadePlayerRatingChanges_ArcadePlayerRatings_ArcadePlayerRa~`;
121121ALTER TABLE { nameof ( ReplayContext . ArcadePlayerRatingChanges ) } ADD CONSTRAINT `FK_ArcadePlayerRatingChanges_ArcadePlayerRatings_ArcadePlayerRa~`
@@ -137,7 +137,7 @@ private async Task DropDsstatsIndexes(string connectionString)
137137 await connection . OpenAsync ( ) ;
138138
139139 var command = connection . CreateCommand ( ) ;
140- command . CommandTimeout = 420 ;
140+ command . CommandTimeout = 840 ;
141141
142142 command . CommandText = @$ "ALTER TABLE { nameof ( ReplayContext . RepPlayerRatings ) } DROP INDEX `IX_RepPlayerRatings_ReplayPlayerId`;
143143ALTER TABLE { nameof ( ReplayContext . RepPlayerRatings ) } DROP INDEX `IX_RepPlayerRatings_ReplayRatingInfoId`;
@@ -159,7 +159,7 @@ private async Task ReCreateDsstatsIndexes(string connectionString)
159159 await connection . OpenAsync ( ) ;
160160
161161 var command = connection . CreateCommand ( ) ;
162- command . CommandTimeout = 420 ;
162+ command . CommandTimeout = 840 ;
163163
164164 command . CommandText = @$ "CREATE UNIQUE INDEX `IX_RepPlayerRatings_ReplayPlayerId` ON { nameof ( ReplayContext . RepPlayerRatings ) } ({ nameof ( RepPlayerRating . ReplayPlayerId ) } );
165165CREATE INDEX `IX_RepPlayerRatings_ReplayRatingInfoId` ON { nameof ( ReplayContext . RepPlayerRatings ) } ({ nameof ( RepPlayerRating . ReplayRatingInfoId ) } );" ;
0 commit comments