mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2347
This commit is contained in:
parent
4d50c7823f
commit
051a65c274
3 changed files with 84377 additions and 2 deletions
84313
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210429055011_2347.Designer.cs
generated
Normal file
84313
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210429055011_2347.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,57 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2347 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2471, 3 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[] { 2471, 4 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[] { 2471, 5 });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2471,
|
||||
column: "Description",
|
||||
value: "Dutch supplement for the Easylist filters to use with uBlock Origin");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2471, 4 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2471, 5 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[] { 2471, 3 });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2471,
|
||||
column: "Description",
|
||||
value: "My own Dutch supplement for the Easylist filters");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19355,7 +19355,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2471,
|
||||
Description = "My own Dutch supplement for the Easylist filters",
|
||||
Description = "Dutch supplement for the Easylist filters to use with uBlock Origin",
|
||||
HomeUrl = "https://github.com/BPower0036/AdBlockFilters/",
|
||||
IssuesUrl = "https://github.com/BPower0036/AdBlockFilters/issues",
|
||||
LicenseId = 4,
|
||||
|
|
@ -42206,7 +42206,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
FilterListId = 2471,
|
||||
SyntaxId = 3
|
||||
SyntaxId = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -57996,6 +57996,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
TagId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2471,
|
||||
TagId = 5
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2472,
|
||||
TagId = 6
|
||||
|
|
|
|||
Loading…
Reference in a new issue