mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3723
This commit is contained in:
parent
b1b071feac
commit
31f32e189e
3 changed files with 87982 additions and 1 deletions
87865
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230627163913_3723.Designer.cs
generated
Normal file
87865
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230627163913_3723.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,79 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3723 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_lists",
|
||||
columns: new[] { "id", "chat_url", "description", "donate_url", "email_address", "forum_url", "home_url", "is_approved", "issues_url", "license_id", "name", "onion_url", "policy_url", "submission_url" },
|
||||
values: new object[] { 2661L, null, "Finnish Annoyances List blocks unnecessary connections and hides unnecessary elements.", null, null, null, "https://github.com/Axonym/finnish-annoyances", true, "https://github.com/Axonym/finnish-annoyances/issues", 11L, "Finnish Annoyances", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "maintainers",
|
||||
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
|
||||
values: new object[] { 191L, null, true, "Axonym", null, "https://github.com/Axonym" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_languages",
|
||||
columns: new[] { "filter_list_id", "language_id" },
|
||||
values: new object[] { 2661L, 44L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2661L, 191L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2661L, 2L },
|
||||
{ 2661L, 35L }
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_languages",
|
||||
keyColumns: new[] { "filter_list_id", "language_id" },
|
||||
keyValues: new object[] { 2661L, 44L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2661L, 191L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2661L, 2L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2661L, 35L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2661L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 191L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "7.0.5")
|
||||
.HasAnnotation("ProductVersion", "7.0.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "aggregate_type", new[] { "filter_list", "language", "license", "maintainer", "software", "syntax", "tag" });
|
||||
|
|
@ -21862,6 +21862,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/L8X/AntiAuthenticationUrlFilter/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "Anti-Authentication-Url-Filter"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2661L,
|
||||
Description = "Finnish Annoyances List blocks unnecessary connections and hides unnecessary elements.",
|
||||
HomeUrl = "https://github.com/Axonym/finnish-annoyances",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/Axonym/finnish-annoyances/issues",
|
||||
LicenseId = 11L,
|
||||
Name = "Finnish Annoyances"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -26223,6 +26233,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2659L,
|
||||
LanguageId = 8L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2661L,
|
||||
LanguageId = 44L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -33549,6 +33564,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2660L,
|
||||
MaintainerId = 190L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2661L,
|
||||
MaintainerId = 191L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -60301,6 +60321,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2660L,
|
||||
TagId = 7L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2661L,
|
||||
TagId = 2L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2661L,
|
||||
TagId = 35L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -63556,6 +63586,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
Name = "L8X",
|
||||
Url = "https://github.com/L8X"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 191L,
|
||||
IsApproved = true,
|
||||
Name = "Axonym",
|
||||
Url = "https://github.com/Axonym"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue