mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2370
This commit is contained in:
parent
a4b254f54e
commit
45e6d5a26c
3 changed files with 85086 additions and 1 deletions
85026
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210506230542_2370.Designer.cs
generated
Normal file
85026
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210506230542_2370.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,51 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2370 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2705,
|
||||
columns: new[] { "FilterListId", "Url" },
|
||||
values: new object[] { 2496, "https://raw.githubusercontent.com/troysjanda/MyBlockLists/master/UBOXPI" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2706,
|
||||
columns: new[] { "FilterListId", "Url" },
|
||||
values: new object[] { 2097, "https://raw.githubusercontent.com/Yuki2718/adblock/master/japanese/jp-annoyances-plus.txt" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[] { 2707, 2098, (short)1, "https://raw.githubusercontent.com/Yuki2718/adblock/master/adguard/anti-antiadb.txt" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2707);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2705,
|
||||
columns: new[] { "FilterListId", "Url" },
|
||||
values: new object[] { 2097, "https://raw.githubusercontent.com/Yuki2718/adblock/master/japanese/jp-annoyances-plus.txt" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2706,
|
||||
columns: new[] { "FilterListId", "Url" },
|
||||
values: new object[] { 2098, "https://raw.githubusercontent.com/Yuki2718/adblock/master/adguard/anti-antiadb.txt" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -80015,6 +80015,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2705,
|
||||
FilterListId = 2496,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/troysjanda/MyBlockLists/master/UBOXPI"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2706,
|
||||
FilterListId = 2097,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
|
|
@ -80022,7 +80030,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
},
|
||||
new
|
||||
{
|
||||
Id = 2706,
|
||||
Id = 2707,
|
||||
FilterListId = 2098,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue