]> source.dussan.org Git - gitea.git/commit
Recreate Tables should Recreate indexes on MySQL (#16718)
authorzeripath <art27@cantab.net>
Thu, 19 Aug 2021 04:11:36 +0000 (05:11 +0100)
committerGitHub <noreply@github.com>
Thu, 19 Aug 2021 04:11:36 +0000 (07:11 +0300)
commitc9bca8c5e0d31d7c844c8e9c96588d0c7c5e0392
tree7d58c3b626ce8d595446cdfeaa85a04debad6b5b
parent4aa3cacc4f5a8041d6a1857293f54cc68f550845
Recreate Tables should Recreate indexes on MySQL (#16718)

The MySQL indexes are not being renamed at the same time as RENAME table despite the
CASCADE. Therefore it is probably better to just recreate the indexes instead.

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
models/migrations/migrations.go