]> source.dussan.org Git - gitea.git/commit
Simplify and fix migration 216 (#20035)
authorzeripath <art27@cantab.net>
Sun, 19 Jun 2022 18:07:18 +0000 (19:07 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Jun 2022 18:07:18 +0000 (20:07 +0200)
commit62cb3c8c85f4721a1d2cf04762d2a8bab062bbd3
tree931dca1cd68ff1653e91f2a5eeaa20e7075625b7
parent05a74e6e22984d31c61f38b1174882cf19b1f81c
Simplify and fix migration 216 (#20035)

There appears to be a strange bug whereby the comment_id index can sometimes be missed
or missing from the action table despite the sync2 that should create it in the earlier
part of this migration. However, looking through the code for Sync2 there is no need
for this pre-code to exist and Sync2 should drop/create the indices as necessary.

I think therefore we should simplify the migration to simply be Sync2.

Signed-off-by: Andrew Thornton <art27@cantab.net>
models/migrations/v216.go