diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-14 00:29:38 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-14 00:29:38 +1000 |
| commit | 5b00f23b28e3a09a4120101a8be8802d009e5d84 (patch) | |
| tree | 53a9190c2c8ad57b25c6e429e97fcc8ff6bdeb23 /Migrations | |
| parent | 3ce156d00197a894ac9b0507544afd51aec2a0fd (diff) | |
Added functionality for ingest tagging and implicit tags
Diffstat (limited to 'Migrations')
| -rw-r--r-- | Migrations/20230812095148_Initial.Designer.cs (renamed from Migrations/20230811002826_Initial.Designer.cs) | 20 | ||||
| -rw-r--r-- | Migrations/20230812095148_Initial.cs (renamed from Migrations/20230811002826_Initial.cs) | 20 | ||||
| -rw-r--r-- | Migrations/HyperBooruDbContextModelSnapshot.cs | 18 |
3 files changed, 57 insertions, 1 deletions
diff --git a/Migrations/20230811002826_Initial.Designer.cs b/Migrations/20230812095148_Initial.Designer.cs index 9db9176..277e607 100644 --- a/Migrations/20230811002826_Initial.Designer.cs +++ b/Migrations/20230812095148_Initial.Designer.cs @@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace HyperBooru.Migrations { [DbContext(typeof(HyperBooruDbContext))] - [Migration("20230811002826_Initial")] + [Migration("20230812095148_Initial")] partial class Initial { /// <inheritdoc /> @@ -141,6 +141,24 @@ namespace HyperBooru.Migrations b.HasIndex("DbTagDefinitionObjectId"); b.ToTable("TagDefinitions", (string)null); + + b.HasData( + new + { + ObjectId = -1, + Guid = new Guid("a03e1649-bd30-4db1-a81d-be05ba05f357"), + ObjectType = 0, + Name = "nsfw", + Source = 0 + }, + new + { + ObjectId = -2, + Guid = new Guid("3094fe00-8e41-4c08-8828-dea2ba878dd4"), + ObjectType = 0, + Name = "ingest", + Source = 0 + }); }); modelBuilder.Entity("HyperBooru.DbUploadedFile", b => diff --git a/Migrations/20230811002826_Initial.cs b/Migrations/20230812095148_Initial.cs index f3017e5..40150bd 100644 --- a/Migrations/20230811002826_Initial.cs +++ b/Migrations/20230812095148_Initial.cs @@ -3,6 +3,8 @@ using Microsoft.EntityFrameworkCore.Migrations; #nullable disable +#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional + namespace HyperBooru.Migrations { /// <inheritdoc /> @@ -132,6 +134,24 @@ namespace HyperBooru.Migrations onDelete: ReferentialAction.Cascade); }); + migrationBuilder.InsertData( + table: "Objects", + columns: new[] { "ObjectId", "Guid", "ObjectType" }, + values: new object[,] + { + { -2, new Guid("3094fe00-8e41-4c08-8828-dea2ba878dd4"), 0 }, + { -1, new Guid("a03e1649-bd30-4db1-a81d-be05ba05f357"), 0 } + }); + + migrationBuilder.InsertData( + table: "TagDefinitions", + columns: new[] { "ObjectId", "DbTagDefinitionObjectId", "Name", "Namespace", "Source" }, + values: new object[,] + { + { -2, null, "ingest", null, 0 }, + { -1, null, "nsfw", null, 0 } + }); + migrationBuilder.CreateIndex( name: "IX_Objects_Guid", table: "Objects", diff --git a/Migrations/HyperBooruDbContextModelSnapshot.cs b/Migrations/HyperBooruDbContextModelSnapshot.cs index 36f6e72..7096799 100644 --- a/Migrations/HyperBooruDbContextModelSnapshot.cs +++ b/Migrations/HyperBooruDbContextModelSnapshot.cs @@ -138,6 +138,24 @@ namespace HyperBooru.Migrations b.HasIndex("DbTagDefinitionObjectId"); b.ToTable("TagDefinitions", (string)null); + + b.HasData( + new + { + ObjectId = -1, + Guid = new Guid("a03e1649-bd30-4db1-a81d-be05ba05f357"), + ObjectType = 0, + Name = "nsfw", + Source = 0 + }, + new + { + ObjectId = -2, + Guid = new Guid("3094fe00-8e41-4c08-8828-dea2ba878dd4"), + ObjectType = 0, + Name = "ingest", + Source = 0 + }); }); modelBuilder.Entity("HyperBooru.DbUploadedFile", b => |
