summaryrefslogtreecommitdiffstats
path: root/models/migrations/migrations.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-09-10 20:45:01 +0100
committerGitHub <noreply@github.com>2020-09-10 20:45:01 +0100
commit47289344e2ede03b7a74208aad3b92c8bca979c3 (patch)
treee1920df9ef18854585ed08136249ad185bc1cf96 /models/migrations/migrations.go
parent4f8dad37f834833012004bf5b158e5129af4b610 (diff)
downloadgitea-47289344e2ede03b7a74208aad3b92c8bca979c3.tar.gz
gitea-47289344e2ede03b7a74208aad3b92c8bca979c3.zip
Add Primary Key to Topic and RepoTopic (#12639)
Add a primary key to Topic and RepoTopic tables Fix #8920 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r--models/migrations/migrations.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index 9b94c49cc0..565e583156 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -233,6 +233,8 @@ var migrations = []Migration{
NewMigration("remove issue dependency comments who refer to non existing issues", purgeInvalidDependenciesComments),
// v149 -> v150
NewMigration("Add Created and Updated to Milestone table", addCreatedAndUpdatedToMilestones),
+ // v150 -> v151
+ NewMigration("add primary key to repo_topic", addPrimaryKeyToRepoTopic),
}
// GetCurrentDBVersion returns the current db version