diff options
| author | Jake Mannens <jake@asger.xyz> | 2024-02-05 15:33:27 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2024-02-05 15:33:27 +1100 |
| commit | 226538299372624c10450e203cefc665fcb439a2 (patch) | |
| tree | 258c2fe4f599d8d9db5b0581cb170880c650b963 /Migrations/20231009045945_SecurityRevision.cs | |
| parent | c7f2f42b07f5503e99568e288b6f27ae03ea6fa2 (diff) | |
Removed security migrations
Diffstat (limited to 'Migrations/20231009045945_SecurityRevision.cs')
| -rw-r--r-- | Migrations/20231009045945_SecurityRevision.cs | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/Migrations/20231009045945_SecurityRevision.cs b/Migrations/20231009045945_SecurityRevision.cs deleted file mode 100644 index 03fbd60..0000000 --- a/Migrations/20231009045945_SecurityRevision.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace HyperBooru.Migrations -{ - /// <inheritdoc /> - public partial class SecurityRevision : Migration - { - /// <inheritdoc /> - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn<string>( - name: "DisplayName", - table: "SecurityPrincipals", - type: "text", - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn<byte[]>( - name: "Owner", - table: "Objects", - type: "bytea", - nullable: false, - defaultValue: new byte[] { 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, - oldClrType: typeof(byte[]), - oldType: "bytea", - oldDefaultValue: new byte[] { 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }); - - migrationBuilder.UpdateData( - table: "SecurityPrincipals", - keyColumn: "LocalPrincipalId", - keyValue: -1, - columns: new[] { "DisplayName", "Name" }, - values: new object[] { "Administrator", "Administrator" }); - } - - /// <inheritdoc /> - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "DisplayName", - table: "SecurityPrincipals"); - - migrationBuilder.AlterColumn<byte[]>( - name: "Owner", - table: "Objects", - type: "bytea", - nullable: false, - defaultValue: new byte[] { 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, - oldClrType: typeof(byte[]), - oldType: "bytea", - oldDefaultValue: new byte[] { 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }); - - migrationBuilder.UpdateData( - table: "SecurityPrincipals", - keyColumn: "LocalPrincipalId", - keyValue: -1, - column: "Name", - value: "admin"); - } - } -} |
