mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2809
This commit is contained in:
parent
7f126842a4
commit
4a9c72b472
3 changed files with 87558 additions and 6 deletions
87456
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220217132157_2809.Designer.cs
generated
Normal file
87456
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220217132157_2809.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,83 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2809 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 16L, 3L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 16L, 5L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 16L,
|
||||
columns: new[] { "description", "license_id" },
|
||||
values: new object[] { "Filter that enables removing of ads and anti-adblock scripts from websites with Korean content.", 4L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 18L,
|
||||
columns: new[] { "name", "url" },
|
||||
values: new object[] { "RAIDEN", "https://github.com/Raiden-Ei" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "maintainers",
|
||||
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
|
||||
values: new object[] { 167L, "piquark6046@protonmail.com", true, "PiQuark6046", null, "https://github.com/piquark6046" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 16L, 167L });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 16L, 167L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 16L, 5L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 167L);
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 16L, 3L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 16L,
|
||||
columns: new[] { "description", "license_id" },
|
||||
values: new object[] { "Filter that enables removing of ads, trackers, and various scripts from websites with Korean content.", 8L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 18L,
|
||||
columns: new[] { "name", "url" },
|
||||
values: new object[] { "SlowMemory", "https://github.com/SlowMemory" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.1")
|
||||
.HasAnnotation("ProductVersion", "6.0.2")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "aggregate_type", new[] { "filter_list", "language", "license", "maintainer", "software", "syntax", "tag" });
|
||||
|
|
@ -385,10 +385,10 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 16L,
|
||||
Description = "Filter that enables removing of ads, trackers, and various scripts from websites with Korean content.",
|
||||
Description = "Filter that enables removing of ads and anti-adblock scripts from websites with Korean content.",
|
||||
HomeUrl = "https://list-kr.github.io/",
|
||||
IsApproved = true,
|
||||
LicenseId = 8L,
|
||||
LicenseId = 4L,
|
||||
Name = "List-KR"
|
||||
},
|
||||
new
|
||||
|
|
@ -26593,6 +26593,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
MaintainerId = 18L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 16L,
|
||||
MaintainerId = 167L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 17L,
|
||||
MaintainerId = 19L
|
||||
|
|
@ -44612,7 +44617,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
FilterListId = 16L,
|
||||
TagId = 3L
|
||||
TagId = 5L
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -62305,8 +62310,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
Id = 18L,
|
||||
IsApproved = true,
|
||||
Name = "SlowMemory",
|
||||
Url = "https://github.com/SlowMemory"
|
||||
Name = "RAIDEN",
|
||||
Url = "https://github.com/Raiden-Ei"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -63371,6 +63376,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
Name = "ammnt",
|
||||
Url = "https://github.com/ammnt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 167L,
|
||||
EmailAddress = "piquark6046@protonmail.com",
|
||||
IsApproved = true,
|
||||
Name = "PiQuark6046",
|
||||
Url = "https://github.com/piquark6046"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue