1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

Setup naming convention for Entity Framework migrations (#1464)

This commit is contained in:
Addison Beck 2021-07-15 11:39:54 -04:00 committed by GitHub
parent f6ebb20847
commit 752aa70924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,14 @@
START TRANSACTION;
DROP TABLE `ProviderOrganizationProviderUser`;
ALTER TABLE `Provider` ADD `UseEvents` tinyint(1) NOT NULL DEFAULT FALSE;
ALTER TABLE `Event` ADD `ProviderId` char(36) COLLATE ascii_general_ci NULL;
ALTER TABLE `Event` ADD `ProviderUserId` char(36) COLLATE ascii_general_ci NULL;
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`)
VALUES ('20210709095522_RemoveProviderOrganizationProviderUser', '5.0.5');
COMMIT;

View File

@ -0,0 +1,12 @@
START TRANSACTION;
DROP TABLE "ProviderOrganizationProviderUser";
ALTER TABLE "Event" ADD "ProviderId" uuid NULL;
ALTER TABLE "Event" ADD "ProviderUserId" uuid NULL;
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20210709092227_RemoveProviderOrganizationProviderUser', '5.0.5');
COMMIT;