From b2b65e9a5a29ba5e667586baaa849de2673eb2c1 Mon Sep 17 00:00:00 2001 From: Jeremiah Flaga <108422823+jflaga@users.noreply.github.com> Date: Mon, 15 Apr 2024 01:54:05 +0800 Subject: [PATCH] Add missing tables for registrations (#315) * fix: add missing tables for registrations - registrations.OutboxMessages - registrations.InboxMessages - registrations.InternalCommands * Add missing tables for registrations in migrations directory --- .../CompanyName.MyMeetings.Database.sqlproj | 5 +++ ...4_add_missing_tables_for_registrations.sql | 33 +++++++++++++++++++ .../registrations/Tables/InboxMessages.sql | 10 ++++++ .../registrations/Tables/InternalCommands.sql | 11 +++++++ .../registrations/Tables/OutboxMessages.sql | 10 ++++++ 5 files changed, 69 insertions(+) create mode 100644 src/Database/CompanyName.MyMeetings.Database/Scripts/Migrations/1_0_0_0/0014_add_missing_tables_for_registrations.sql create mode 100644 src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/InboxMessages.sql create mode 100644 src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/InternalCommands.sql create mode 100644 src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/OutboxMessages.sql diff --git a/src/Database/CompanyName.MyMeetings.Database/CompanyName.MyMeetings.Database.sqlproj b/src/Database/CompanyName.MyMeetings.Database/CompanyName.MyMeetings.Database.sqlproj index de55659c..7a3327f7 100644 --- a/src/Database/CompanyName.MyMeetings.Database/CompanyName.MyMeetings.Database.sqlproj +++ b/src/Database/CompanyName.MyMeetings.Database/CompanyName.MyMeetings.Database.sqlproj @@ -91,6 +91,7 @@ + @@ -142,6 +143,9 @@ + + + @@ -174,6 +178,7 @@ + diff --git a/src/Database/CompanyName.MyMeetings.Database/Scripts/Migrations/1_0_0_0/0014_add_missing_tables_for_registrations.sql b/src/Database/CompanyName.MyMeetings.Database/Scripts/Migrations/1_0_0_0/0014_add_missing_tables_for_registrations.sql new file mode 100644 index 00000000..5c698b8e --- /dev/null +++ b/src/Database/CompanyName.MyMeetings.Database/Scripts/Migrations/1_0_0_0/0014_add_missing_tables_for_registrations.sql @@ -0,0 +1,33 @@ +CREATE TABLE [registrations].[OutboxMessages] +( + [Id] UNIQUEIDENTIFIER NOT NULL, + [OccurredOn] DATETIME2 NOT NULL, + [Type] VARCHAR(255) NOT NULL, + [Data] VARCHAR(MAX) NOT NULL, + [ProcessedDate] DATETIME2 NULL, + CONSTRAINT [PK_registrations_OutboxMessages_Id] PRIMARY KEY ([Id] ASC) +) +GO + +CREATE TABLE [registrations].[InternalCommands] +( + [Id] UNIQUEIDENTIFIER NOT NULL, + [EnqueueDate] DATETIME2 NOT NULL, + [Type] VARCHAR(255) NOT NULL, + [Data] VARCHAR(MAX) NOT NULL, + [ProcessedDate] DATETIME2 NULL, + [Error] NVARCHAR(MAX) NULL, + CONSTRAINT [PK_registrations_InternalCommands_Id] PRIMARY KEY ([Id] ASC) +) +GO + +CREATE TABLE [registrations].[InboxMessages] +( + [Id] UNIQUEIDENTIFIER NOT NULL, + [OccurredOn] DATETIME2 NOT NULL, + [Type] VARCHAR(255) NOT NULL, + [Data] VARCHAR(MAX) NOT NULL, + [ProcessedDate] DATETIME2 NULL, + CONSTRAINT [PK_registrations_InboxMessages_Id] PRIMARY KEY ([Id] ASC) +) +GO diff --git a/src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/InboxMessages.sql b/src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/InboxMessages.sql new file mode 100644 index 00000000..95406505 --- /dev/null +++ b/src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/InboxMessages.sql @@ -0,0 +1,10 @@ +CREATE TABLE [registrations].InboxMessages +( + [Id] UNIQUEIDENTIFIER NOT NULL, + [OccurredOn] DATETIME2 NOT NULL, + [Type] VARCHAR(255) NOT NULL, + [Data] VARCHAR(MAX) NOT NULL, + [ProcessedDate] DATETIME2 NULL, + CONSTRAINT [PK_registrations_InboxMessages_Id] PRIMARY KEY ([Id] ASC) +) +GO \ No newline at end of file diff --git a/src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/InternalCommands.sql b/src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/InternalCommands.sql new file mode 100644 index 00000000..7d691067 --- /dev/null +++ b/src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/InternalCommands.sql @@ -0,0 +1,11 @@ +CREATE TABLE [registrations].InternalCommands +( + [Id] UNIQUEIDENTIFIER NOT NULL, + [EnqueueDate] DATETIME2 NOT NULL, + [Type] VARCHAR(255) NOT NULL, + [Data] VARCHAR(MAX) NOT NULL, + [ProcessedDate] DATETIME2 NULL, + [Error] NVARCHAR(MAX) NULL, + CONSTRAINT [PK_registrations_InternalCommands_Id] PRIMARY KEY ([Id] ASC) +) +GO \ No newline at end of file diff --git a/src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/OutboxMessages.sql b/src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/OutboxMessages.sql new file mode 100644 index 00000000..09bea805 --- /dev/null +++ b/src/Database/CompanyName.MyMeetings.Database/Structure/registrations/Tables/OutboxMessages.sql @@ -0,0 +1,10 @@ +CREATE TABLE [registrations].OutboxMessages +( + [Id] UNIQUEIDENTIFIER NOT NULL, + [OccurredOn] DATETIME2 NOT NULL, + [Type] VARCHAR(255) NOT NULL, + [Data] VARCHAR(MAX) NOT NULL, + [ProcessedDate] DATETIME2 NULL, + CONSTRAINT [PK_registrations_OutboxMessages_Id] PRIMARY KEY ([Id] ASC) +) +GO