Browse Source

[EC-756] Add missing EF scripts to add new 'Events' table 'SystemUser' column (#2414)

* [EC-756] Add missing Postgres migration script

* [EC-756] Add missing MySQL migration script
pull/2416/head
Rui Tomé 3 years ago committed by GitHub
parent
commit
c377a50b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      util/MySqlMigrations/Scripts/2022-09-27_00_EventsSystemUser.sql
  2. 8
      util/PostgresMigrations/Scripts/2022-09-27_00_EventsSystemUser.psql

8
util/MySqlMigrations/Scripts/2022-09-27_00_EventsSystemUser.sql

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
START TRANSACTION;
ALTER TABLE `Event` ADD `SystemUser` tinyint unsigned NULL;
INSERT INTO `__EFMigrationsHistory` (`MigrationId`, `ProductVersion`)
VALUES ('20220927142038_EventsSystemUser', '6.0.4');
COMMIT;

8
util/PostgresMigrations/Scripts/2022-09-27_00_EventsSystemUser.psql

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
START TRANSACTION;
ALTER TABLE "Event" ADD "SystemUser" smallint NULL;
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
VALUES ('20220927142152_EventsSystemUser', '6.0.4');
COMMIT;
Loading…
Cancel
Save