Skip to content

Commit 7335c8b

Browse files
authored
Add BuildUpdate table to db:clean command (#3714)
Add a line to remove the unused rows from the `buildupdate` table where the `build` table no longer has a reference to it in the `updateid` column
1 parent c0e9c27 commit 7335c8b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/Console/Commands/CleanDatabase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function handle(): void
3232
DatabaseCleanupUtils::deleteUnusedRows('note', 'id', 'build2note', 'noteid');
3333
DatabaseCleanupUtils::deleteUnusedRows('testoutput', 'id', 'build2test', 'outputid');
3434
DatabaseCleanupUtils::deleteUnusedRows('uploadfile', 'id', 'build2uploadfile', 'fileid');
35+
DatabaseCleanupUtils::deleteUnusedRows('buildupdate', 'id', 'build', 'updateid');
3536

3637
Log::info('Deleting unused rows from `image`');
3738
$num_deleted = DB::delete('DELETE FROM image WHERE

0 commit comments

Comments
 (0)