diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-10-05 14:45:21 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-10-05 14:45:21 +0200 |
| commit | b7e39b59fd0fc7b5610ebff29035bf622079e0d8 (patch) | |
| tree | 64be84ebbdac9f7ceced983390c53b10d575af5c /server/src/Migrations/20220320132220_UpdatedForgotPasswordRequests.cs | |
| parent | 2001c035fbb417ab0a3d42cfb04d17420bde4086 (diff) | |
| download | greatoffice-b7e39b59fd0fc7b5610ebff29035bf622079e0d8.tar.xz greatoffice-b7e39b59fd0fc7b5610ebff29035bf622079e0d8.zip | |
refactor: Change file structure
Diffstat (limited to 'server/src/Migrations/20220320132220_UpdatedForgotPasswordRequests.cs')
| -rw-r--r-- | server/src/Migrations/20220320132220_UpdatedForgotPasswordRequests.cs | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/server/src/Migrations/20220320132220_UpdatedForgotPasswordRequests.cs b/server/src/Migrations/20220320132220_UpdatedForgotPasswordRequests.cs deleted file mode 100644 index df7a195..0000000 --- a/server/src/Migrations/20220320132220_UpdatedForgotPasswordRequests.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace IOL.GreatOffice.Api.Migrations -{ - public partial class UpdatedForgotPasswordRequests : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "fk_forgot_password_requests_users_user_id", - table: "forgot_password_requests"); - - migrationBuilder.AlterColumn<Guid>( - name: "user_id", - table: "forgot_password_requests", - type: "uuid", - nullable: false, - defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), - oldClrType: typeof(Guid), - oldType: "uuid", - oldNullable: true); - - migrationBuilder.AddForeignKey( - name: "fk_forgot_password_requests_users_user_id", - table: "forgot_password_requests", - column: "user_id", - principalTable: "users", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "fk_forgot_password_requests_users_user_id", - table: "forgot_password_requests"); - - migrationBuilder.AlterColumn<Guid>( - name: "user_id", - table: "forgot_password_requests", - type: "uuid", - nullable: true, - oldClrType: typeof(Guid), - oldType: "uuid"); - - migrationBuilder.AddForeignKey( - name: "fk_forgot_password_requests_users_user_id", - table: "forgot_password_requests", - column: "user_id", - principalTable: "users", - principalColumn: "id"); - } - } -} |
