mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
Check for correct database in an old MySql migration
This commit is contained in:
parent
1fb366d42b
commit
9322350ef5
@ -77,7 +77,7 @@ public partial class GrantIdWithIndexes : Migration
|
||||
|
||||
CREATE PROCEDURE GrantSchemaChange()
|
||||
BEGIN
|
||||
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Grant' AND COLUMN_NAME = 'Id') THEN
|
||||
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Grant' AND COLUMN_NAME = 'Id' AND TABLE_SCHEMA=database()) THEN
|
||||
ALTER TABLE `Grant` DROP COLUMN `Id`;
|
||||
END IF;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user