zeripath 428d58f8da
Restore compatibility with SQLServer 2008 R2 in migrations (#16638)
This fixes two problems with MSSQL:

* `ALTER TABLE DROP ... IF EXISTS ...` is only supported in SQL Server >16.

The `IF EXISTS` here is a belt-and-braces and does not need to be present. Therefore
can be dropped. Also stop attempting to drop the indexes as constraints as they're indexes!

* System tables like: `sys.indexes` should be lowercase not uppercase because of collation issues.

Fix #13615

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-08 13:32:07 +03:00
..
2021-05-16 19:58:26 +08:00
2021-06-29 22:00:02 +01:00
2021-04-05 08:41:22 +01:00
2021-06-25 16:28:55 +02:00
2021-06-25 16:28:55 +02:00
2021-04-19 18:25:08 -04:00
2021-06-07 07:27:09 +02:00
2021-07-27 09:44:44 +08:00
2021-05-01 22:51:03 -04:00
2021-06-25 12:59:25 -04:00