From 0393a57511dc863bea4783fbb4b57cd11c41688a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 14 Jun 2021 10:22:55 +0800 Subject: Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index (#15599) * Add a new table issue_index to store the max issue index so that issue could be deleted with no duplicated index * Fix pull index * Add tests for concurrent creating issues * Fix lint * Fix tests * Fix postgres test * Add test for migration v180 * Rename wrong test file name Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH --- models/migrations/migrations.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'models/migrations/migrations.go') diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index df1bac4a13..4c07db0a0f 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -313,6 +313,8 @@ var migrations = []Migration{ NewMigration("Delete credentials from past migrations", deleteMigrationCredentials), // v181 -> v182 NewMigration("Always save primary email on email address table", addPrimaryEmail2EmailAddress), + // v182 -> v183 + NewMigration("Add issue resource index table", addIssueResourceIndexTable), } // GetCurrentDBVersion returns the current db version -- cgit v1.2.3