Skip to content

Commit

Permalink
Add missing tables for registrations (#315)
Browse files Browse the repository at this point in the history
* fix: add missing tables for registrations

 - registrations.OutboxMessages
 - registrations.InboxMessages
 - registrations.InternalCommands

* Add missing tables for registrations in migrations directory
  • Loading branch information
jflaga authored Apr 14, 2024
1 parent f2d7553 commit b2b65e9
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<Folder Include="Structure\registrations\" />
<Folder Include="Structure\registrations\Tables\" />
<Folder Include="Structure\registrations\Views\" />
<Folder Include="Structure\" />
</ItemGroup>
<ItemGroup>
<Build Include="Structure\administration\Tables\InboxMessages.sql" />
Expand Down Expand Up @@ -142,6 +143,9 @@
<Build Include="Structure\payments\Tables\SubscriptionPayments.sql" />
<Build Include="Structure\payments\Types\NewStreamMessages.sql" />
<Build Include="Structure\registrations\Tables\UserRegistrations.sql" />
<Build Include="Structure\registrations\Tables\OutboxMessages.sql" />
<Build Include="Structure\registrations\Tables\InboxMessages.sql" />
<Build Include="Structure\registrations\Tables\InternalCommands.sql" />
<Build Include="Structure\registrations\Views\v_UserRegistrations.sql" />
<Build Include="Structure\Security\Schemas.sql" />
<Build Include="Structure\users\Tables\InboxMessages.sql" />
Expand Down Expand Up @@ -174,6 +178,7 @@
<None Include="Scripts\Migrations\1_0_0_0\0011_add_likes_count_to_meeting_comments_table.sql" />
<None Include="Scripts\Migrations\1_0_0_0\0012_add_likes_count_to_meeting_comments_view.sql" />
<None Include="Scripts\Migrations\1_0_0_0\0013_add_meeting_member_comment_likes_table.sql" />
<None Include="Scripts\Migrations\1_0_0_0\0014_add_missing_tables_for_registrations.sql" />
</ItemGroup>
<ItemGroup>
<None Include="Scripts\ClearDatabase.sql" />
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b2b65e9

Please sign in to comment.