From c377a50b9d770a26bf3876655e3f07e143d384e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Tom=C3=A9?= <108268980+r-tome@users.noreply.github.com> Date: Wed, 16 Nov 2022 07:59:30 +0000 Subject: [PATCH] [EC-756] Add missing EF scripts to add new 'Events' table 'SystemUser' column (#2414) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [EC-756] Add missing Postgres migration script * [EC-756] Add missing MySQL migration script --- .../Scripts/2022-09-27_00_EventsSystemUser.sql | 8 ++++++++ .../Scripts/2022-09-27_00_EventsSystemUser.psql | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 util/MySqlMigrations/Scripts/2022-09-27_00_EventsSystemUser.sql create mode 100644 util/PostgresMigrations/Scripts/2022-09-27_00_EventsSystemUser.psql diff --git a/util/MySqlMigrations/Scripts/2022-09-27_00_EventsSystemUser.sql b/util/MySqlMigrations/Scripts/2022-09-27_00_EventsSystemUser.sql new file mode 100644 index 0000000000..d07189c5f2 --- /dev/null +++ b/util/MySqlMigrations/Scripts/2022-09-27_00_EventsSystemUser.sql @@ -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; \ No newline at end of file diff --git a/util/PostgresMigrations/Scripts/2022-09-27_00_EventsSystemUser.psql b/util/PostgresMigrations/Scripts/2022-09-27_00_EventsSystemUser.psql new file mode 100644 index 0000000000..61cae46c62 --- /dev/null +++ b/util/PostgresMigrations/Scripts/2022-09-27_00_EventsSystemUser.psql @@ -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; \ No newline at end of file