Remove If Exist check on migration for mssql because that syntax required SQL server 2016 (#30894)

Fix #30872

We will assume the database is consistent before executing the
migration. So the indexes should exist. Removing `IF EXIST` then is safe
enough.

---------

Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 40de54ece82356b161cdb9cc224ed9004af8ae5d)

Conflicts:
	models/migrations/v1_22/v286.go
	MSSQL is not supported in Forgejo
This commit is contained in:
Lunny Xiao 2024-05-11 22:16:09 +08:00 committed by Earl Warren
parent b8f65234bc
commit 32c97efab4
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 9 additions and 7 deletions

View file

@ -1,3 +1,5 @@
-
id: 1
user_id: 1
pull_id: 1
commit_sha: 19fe5caf872476db265596eaac1dc35ad1c6422d