diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-20 15:53:05 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-09-25 16:02:18 +1000 |
| commit | 39eead0052215d7be4f49906e987fef7fb0c700b (patch) | |
| tree | a7381d06ee6cab9d4ce72d1e2a7121bc93193c6d /Migrations | |
| parent | fbaa4e43709a96774ebe42b7ec5908c1c0f310d7 (diff) | |
Fixed migration and began adding ACL edit dialog
Diffstat (limited to 'Migrations')
| -rw-r--r-- | Migrations/20230920052204_Security.Designer.cs (renamed from Migrations/20230920014958_Security.Designer.cs) | 8 | ||||
| -rw-r--r-- | Migrations/20230920052204_Security.cs (renamed from Migrations/20230920014958_Security.cs) | 12 | ||||
| -rw-r--r-- | Migrations/HBContextModelSnapshot.cs | 6 |
3 files changed, 13 insertions, 13 deletions
diff --git a/Migrations/20230920014958_Security.Designer.cs b/Migrations/20230920052204_Security.Designer.cs index 7933a93..8640c30 100644 --- a/Migrations/20230920014958_Security.Designer.cs +++ b/Migrations/20230920052204_Security.Designer.cs @@ -12,7 +12,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace HyperBooru.Migrations { [DbContext(typeof(HBContext))] - [Migration("20230920014958_Security")] + [Migration("20230920052204_Security")] partial class Security { /// <inheritdoc /> @@ -110,8 +110,8 @@ namespace HyperBooru.Migrations b.Property<int>("Action") .HasColumnType("integer"); - b.Property<decimal>("Permissions") - .HasColumnType("numeric(20,0)"); + b.Property<long>("Permissions") + .HasColumnType("bigint"); b.Property<int>("PrincipalObjectId") .HasColumnType("integer"); @@ -284,7 +284,7 @@ namespace HyperBooru.Migrations new { ObjectId = -3, - Guid = new Guid("bf62bd4c-806e-4d1b-a62d-0efffce8628a"), + Guid = new Guid("8fbbc2e9-0609-460a-ab3a-c3bdd10ab793"), Name = "admin", PasswordHash = "P4geAuE2yX/PDRHuJSq74FF5vO782rWz5c0LAQPR8m45DEYAONhu1wYnAn60PSNyjocqEBdnCeKCJfK3sKyuWw==" }); diff --git a/Migrations/20230920014958_Security.cs b/Migrations/20230920052204_Security.cs index ed7def8..982cb97 100644 --- a/Migrations/20230920014958_Security.cs +++ b/Migrations/20230920052204_Security.cs @@ -19,6 +19,10 @@ namespace HyperBooru.Migrations name: "IX_Users_Username", table: "Users"); + migrationBuilder.DropColumn( + name: "Username", + table: "Users"); + migrationBuilder.CreateTable( name: "Acls", columns: table => new @@ -56,7 +60,7 @@ namespace HyperBooru.Migrations ObjectId = table.Column<int>(type: "integer", nullable: false), PrincipalObjectId = table.Column<int>(type: "integer", nullable: false), Action = table.Column<int>(type: "integer", nullable: false), - Permissions = table.Column<decimal>(type: "numeric(20,0)", nullable: false), + Permissions = table.Column<long>(type: "bigint", nullable: false), AclObjectId = table.Column<int>(type: "integer", nullable: true) }, constraints: table => @@ -97,7 +101,7 @@ namespace HyperBooru.Migrations keyColumn: "ObjectId", keyValue: -3, column: "Guid", - value: new Guid("bf62bd4c-806e-4d1b-a62d-0efffce8628a")); + value: new Guid("8fbbc2e9-0609-460a-ab3a-c3bdd10ab793")); migrationBuilder.InsertData( table: "Principals", @@ -131,10 +135,6 @@ namespace HyperBooru.Migrations principalTable: "Principals", principalColumn: "ObjectId", onDelete: ReferentialAction.Cascade); - - migrationBuilder.DropColumn( - name: "Username", - table: "Users"); } /// <inheritdoc /> diff --git a/Migrations/HBContextModelSnapshot.cs b/Migrations/HBContextModelSnapshot.cs index da4c444..5514b9b 100644 --- a/Migrations/HBContextModelSnapshot.cs +++ b/Migrations/HBContextModelSnapshot.cs @@ -107,8 +107,8 @@ namespace HyperBooru.Migrations b.Property<int>("Action") .HasColumnType("integer"); - b.Property<decimal>("Permissions") - .HasColumnType("numeric(20,0)"); + b.Property<long>("Permissions") + .HasColumnType("bigint"); b.Property<int>("PrincipalObjectId") .HasColumnType("integer"); @@ -281,7 +281,7 @@ namespace HyperBooru.Migrations new { ObjectId = -3, - Guid = new Guid("bf62bd4c-806e-4d1b-a62d-0efffce8628a"), + Guid = new Guid("8fbbc2e9-0609-460a-ab3a-c3bdd10ab793"), Name = "admin", PasswordHash = "P4geAuE2yX/PDRHuJSq74FF5vO782rWz5c0LAQPR8m45DEYAONhu1wYnAn60PSNyjocqEBdnCeKCJfK3sKyuWw==" }); |
