-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1d8071
commit 052b2cf
Showing
18 changed files
with
251 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/Infrastructure.EntityFramework/NotificationCenter/Models/Notification.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
util/MySqlMigrations/Migrations/20250207182213_AddOptionalNotifificationTaskId.cs
This file was deleted.
Oops, something went wrong.
11 changes: 10 additions & 1 deletion
11
...dOptionalNotifificationTaskId.Designer.cs → ...AddOptionalNotificationTaskId.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
util/MySqlMigrations/Migrations/20250207204741_AddOptionalNotificationTaskId.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Bit.MySqlMigrations.Migrations | ||
{ | ||
/// <inheritdoc /> | ||
public partial class AddOptionalNotifificationTaskId : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<Guid>( | ||
name: "TaskId", | ||
table: "Notification", | ||
type: "char(36)", | ||
nullable: true, | ||
collation: "ascii_general_ci"); | ||
|
||
migrationBuilder.CreateIndex( | ||
name: "IX_Notification_TaskId", | ||
table: "Notification", | ||
column: "TaskId"); | ||
|
||
migrationBuilder.AddForeignKey( | ||
name: "FK_Notification_SecurityTask_TaskId", | ||
table: "Notification", | ||
column: "TaskId", | ||
principalTable: "SecurityTask", | ||
principalColumn: "Id"); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropForeignKey( | ||
name: "FK_Notification_SecurityTask_TaskId", | ||
table: "Notification"); | ||
|
||
migrationBuilder.DropIndex( | ||
name: "IX_Notification_TaskId", | ||
table: "Notification"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "TaskId", | ||
table: "Notification"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
util/PostgresMigrations/Migrations/20250207182206_AddOptionalNotifificationTaskId.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.