@@ -286,7 +286,7 @@ public static Task UpdateBeatmapSetAsync(this MySqlConnection db, osu_beatmapset
286286 UPDATE `osu_beatmapsets`
287287 SET
288288 `artist` = @artist, `artist_unicode` = @artist_unicode, `title` = @title, `title_unicode` = @title_unicode,
289- `source` = @source, `tags` = @tags, `video` = @video, `storyboard` = @storyboard,
289+ `creator` = @creator, ` source` = @source, `tags` = @tags, `video` = @video, `storyboard` = @storyboard,
290290 `storyboard_hash` = @storyboard_hash, `bpm` = @bpm, `filename` = @filename, `displaytitle` = @displaytitle,
291291 `body_hash` = NULL, `header_hash` = NULL, `osz2_hash` = NULL, `active` = 1, `last_update` = CURRENT_TIMESTAMP
292292 WHERE `beatmapset_id` = @beatmapset_id
@@ -296,14 +296,15 @@ public static Task UpdateBeatmapSetAsync(this MySqlConnection db, osu_beatmapset
296296 }
297297
298298 /// <summary>
299- /// Only bumps the <paramref name="beatmapset"/>'s <c>last_update</c> date without performing any other changes.
299+ /// Only updates the <paramref name="beatmapset"/>'s <c>last_update</c> date and <c>creator</c> name without performing any other changes.
300300 /// Used in scenarios where a submission occurred for a beatmap with no changes.
301301 /// Bumping the update date is important in such cases, because if it is e.g. an update after reviving the beatmap,
302302 /// not bumping the update date will cause the beatmap to move to the graveyard again on the next day after the update.
303+ /// Updating the creator name is important in cases of name changes, especially ones with username history scrubbed.
303304 /// </summary>
304305 public static Task MarkBeatmapSetUpdatedAsync ( this MySqlConnection db , osu_beatmapset beatmapset , MySqlTransaction ? transaction = null )
305306 {
306- return db . ExecuteAsync ( "UPDATE `osu_beatmapsets` SET `last_update` = CURRENT_TIMESTAMP WHERE `beatmapset_id` = @beatmapset_id" , beatmapset , transaction ) ;
307+ return db . ExecuteAsync ( "UPDATE `osu_beatmapsets` SET `last_update` = CURRENT_TIMESTAMP, `creator` = @creator WHERE `beatmapset_id` = @beatmapset_id" , beatmapset , transaction ) ;
307308 }
308309
309310 public static async Task < ulong > InsertBeatmapsetFileAsync ( this MySqlConnection db , beatmapset_file file , MySqlTransaction ? transaction = null )
0 commit comments