mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2709
This commit is contained in:
parent
b03ab3a431
commit
6514315524
3 changed files with 87799 additions and 0 deletions
87749
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20211208144405_2709.Designer.cs
generated
Normal file
87749
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20211208144405_2709.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,34 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2709 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2519L, 2812L, (short)2, "https://www.combinatronics.com/JohnyP36/Personal-List/main/Personal List (uBo).txt" },
|
||||
{ 2519L, 2813L, (short)3, "https://cdn.statically.io/gh/JohnyP36/Personal-List/main/Personal List (uBo).txt" }
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2519L, 2812L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2519L, 2813L });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -87502,6 +87502,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)6,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.jsdelivr.net/gh/BPower0036/AdBlockfilters@main/my filters"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2519L,
|
||||
Id = 2812L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://www.combinatronics.com/JohnyP36/Personal-List/main/Personal List (uBo).txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2519L,
|
||||
Id = 2813L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gh/JohnyP36/Personal-List/main/Personal List (uBo).txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue