mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2240
This commit is contained in:
parent
40b2039577
commit
fc6da61cc8
3 changed files with 83532 additions and 15 deletions
83420
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210219184255_2240.Designer.cs
generated
Normal file
83420
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210219184255_2240.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,97 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2240 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1936,
|
||||
column: "Url",
|
||||
value: "https://mkb2091.github.io/blockconvert/output/adblock.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1937,
|
||||
column: "Url",
|
||||
value: "https://mkb2091.github.io/blockconvert/output/hosts.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1938,
|
||||
column: "Url",
|
||||
value: "https://mkb2091.github.io/blockconvert/output/domains.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1939,
|
||||
column: "Url",
|
||||
value: "https://mkb2091.github.io/blockconvert/output/ip_blocklist.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1940,
|
||||
column: "Url",
|
||||
value: "https://mkb2091.github.io/blockconvert/output/domains.rpz");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1941,
|
||||
column: "Url",
|
||||
value: "https://mkb2091.github.io/blockconvert/output/whitelist_domains.txt");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1936,
|
||||
column: "Url",
|
||||
value: "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/adblock.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1937,
|
||||
column: "Url",
|
||||
value: "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/hosts.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1938,
|
||||
column: "Url",
|
||||
value: "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/domains.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1939,
|
||||
column: "Url",
|
||||
value: "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/ip_blocklist.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1940,
|
||||
column: "Url",
|
||||
value: "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/domains.rpz");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1941,
|
||||
column: "Url",
|
||||
value: "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/whitelist_domains.txt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -15,9 +15,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.UseIdentityByDefaultColumns()
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63)
|
||||
.HasAnnotation("ProductVersion", "5.0.2");
|
||||
.HasAnnotation("ProductVersion", "5.0.3")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
modelBuilder.Entity("FilterLists.Directory.Infrastructure.Persistence.Queries.Entities.Dependent", b =>
|
||||
{
|
||||
|
|
@ -81,7 +81,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.UseIdentityByDefaultColumn();
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<string>("ChatUrl")
|
||||
.HasColumnType("text");
|
||||
|
|
@ -57333,7 +57333,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.UseIdentityByDefaultColumn();
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<int>("FilterListId")
|
||||
.HasColumnType("integer");
|
||||
|
|
@ -72798,7 +72798,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
FilterListId = 1868,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/adblock.txt"
|
||||
Url = "https://mkb2091.github.io/blockconvert/output/adblock.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -72806,7 +72806,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
FilterListId = 1869,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/hosts.txt"
|
||||
Url = "https://mkb2091.github.io/blockconvert/output/hosts.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -72814,7 +72814,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
FilterListId = 1870,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/domains.txt"
|
||||
Url = "https://mkb2091.github.io/blockconvert/output/domains.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -72822,7 +72822,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
FilterListId = 1871,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/ip_blocklist.txt"
|
||||
Url = "https://mkb2091.github.io/blockconvert/output/ip_blocklist.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -72830,7 +72830,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
FilterListId = 1872,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/domains.rpz"
|
||||
Url = "https://mkb2091.github.io/blockconvert/output/domains.rpz"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -72838,7 +72838,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
FilterListId = 1873,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/mkb2091/blockconvert/master/output/whitelist_domains.txt"
|
||||
Url = "https://mkb2091.github.io/blockconvert/output/whitelist_domains.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -79455,7 +79455,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.UseIdentityByDefaultColumn();
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
|
|
@ -79875,7 +79875,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.UseIdentityByDefaultColumn();
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<string>("EmailAddress")
|
||||
.HasColumnType("text");
|
||||
|
|
@ -81226,7 +81226,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.UseIdentityByDefaultColumn();
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("text");
|
||||
|
|
@ -82648,7 +82648,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.UseIdentityByDefaultColumn();
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("text");
|
||||
|
|
@ -82922,7 +82922,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.UseIdentityByDefaultColumn();
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("text");
|
||||
|
|
|
|||
Loading…
Reference in a new issue