mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
resharper cleanup
This commit is contained in:
parent
012d16775c
commit
83aa77f7dd
4 changed files with 81 additions and 92 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Data.Migrations
|
||||
|
|
@ -9,8 +8,8 @@ public partial class Initial : Migration
|
|||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "List",
|
||||
columns: table => new
|
||||
"List",
|
||||
table => new
|
||||
{
|
||||
Id = table.Column<long>(nullable: false)
|
||||
.Annotation("MySQL:AutoIncrement", true),
|
||||
|
|
@ -26,16 +25,13 @@ protected override void Up(MigrationBuilder migrationBuilder)
|
|||
Name = table.Column<string>(maxLength: 64, nullable: true),
|
||||
ViewUrl = table.Column<string>(maxLength: 2083, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_List", x => x.Id);
|
||||
});
|
||||
constraints: table => { table.PrimaryKey("PK_List", x => x.Id); });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "List");
|
||||
"List");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Data.Migrations
|
||||
|
|
@ -9,8 +8,8 @@ public partial class AddAuthor : Migration
|
|||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Name",
|
||||
table: "List",
|
||||
"Name",
|
||||
"List",
|
||||
maxLength: 126,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
|
|
@ -18,14 +17,14 @@ protected override void Up(MigrationBuilder migrationBuilder)
|
|||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "ModifiedDateUtc",
|
||||
table: "List",
|
||||
"ModifiedDateUtc",
|
||||
"List",
|
||||
nullable: true,
|
||||
oldClrType: typeof(DateTime));
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Email",
|
||||
table: "List",
|
||||
"Email",
|
||||
"List",
|
||||
maxLength: 126,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
|
|
@ -33,8 +32,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
|
|||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Description",
|
||||
table: "List",
|
||||
"Description",
|
||||
"List",
|
||||
maxLength: 1022,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
|
|
@ -42,8 +41,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
|
|||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Author",
|
||||
table: "List",
|
||||
"Author",
|
||||
"List",
|
||||
maxLength: 126,
|
||||
nullable: true);
|
||||
}
|
||||
|
|
@ -51,12 +50,12 @@ protected override void Up(MigrationBuilder migrationBuilder)
|
|||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Author",
|
||||
table: "List");
|
||||
"Author",
|
||||
"List");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Name",
|
||||
table: "List",
|
||||
"Name",
|
||||
"List",
|
||||
maxLength: 64,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
|
|
@ -64,15 +63,15 @@ protected override void Down(MigrationBuilder migrationBuilder)
|
|||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<DateTime>(
|
||||
name: "ModifiedDateUtc",
|
||||
table: "List",
|
||||
"ModifiedDateUtc",
|
||||
"List",
|
||||
nullable: false,
|
||||
oldClrType: typeof(DateTime),
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Email",
|
||||
table: "List",
|
||||
"Email",
|
||||
"List",
|
||||
maxLength: 254,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
|
|
@ -80,8 +79,8 @@ protected override void Down(MigrationBuilder migrationBuilder)
|
|||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Description",
|
||||
table: "List",
|
||||
"Description",
|
||||
"List",
|
||||
maxLength: 512,
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
|
|
@ -89,4 +88,4 @@ protected override void Down(MigrationBuilder migrationBuilder)
|
|||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Data.Migrations
|
||||
|
|
@ -9,8 +8,8 @@ public partial class addTableCsvEntity : Migration
|
|||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TableCsv",
|
||||
columns: table => new
|
||||
"TableCsv",
|
||||
table => new
|
||||
{
|
||||
Id = table.Column<long>(nullable: false)
|
||||
.Annotation("MySQL:AutoIncrement", true),
|
||||
|
|
@ -19,16 +18,13 @@ protected override void Up(MigrationBuilder migrationBuilder)
|
|||
Name = table.Column<string>(maxLength: 126, nullable: false),
|
||||
Url = table.Column<string>(maxLength: 2083, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TableCsv", x => x.Id);
|
||||
});
|
||||
constraints: table => { table.PrimaryKey("PK_TableCsv", x => x.Id); });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "TableCsv");
|
||||
"TableCsv");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,14 +1,12 @@
|
|||
using System;
|
||||
using FilterLists.Data.Contexts;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using FilterLists.Data.Contexts;
|
||||
|
||||
namespace FilterLists.Data.Migrations
|
||||
{
|
||||
[DbContext(typeof(FilterListsDbContext))]
|
||||
partial class FilterListsDbContextModelSnapshot : ModelSnapshot
|
||||
internal class FilterListsDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
|
|
@ -16,75 +14,75 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
.HasAnnotation("ProductVersion", "1.1.2");
|
||||
|
||||
modelBuilder.Entity("FilterLists.Data.Models.List", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("AddedDateUtc")
|
||||
.ValueGeneratedOnAdd();
|
||||
b.Property<DateTime>("AddedDateUtc")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<string>("Author")
|
||||
.HasMaxLength(126);
|
||||
b.Property<string>("Author")
|
||||
.HasMaxLength(126);
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1022);
|
||||
b.Property<string>("Description")
|
||||
.HasMaxLength(1022);
|
||||
|
||||
b.Property<string>("DescriptionSourceUrl")
|
||||
.HasMaxLength(2083);
|
||||
b.Property<string>("DescriptionSourceUrl")
|
||||
.HasMaxLength(2083);
|
||||
|
||||
b.Property<string>("DonateUrl")
|
||||
.HasMaxLength(2083);
|
||||
b.Property<string>("DonateUrl")
|
||||
.HasMaxLength(2083);
|
||||
|
||||
b.Property<string>("Email")
|
||||
.HasMaxLength(126);
|
||||
b.Property<string>("Email")
|
||||
.HasMaxLength(126);
|
||||
|
||||
b.Property<string>("ForumUrl")
|
||||
.HasMaxLength(2083);
|
||||
b.Property<string>("ForumUrl")
|
||||
.HasMaxLength(2083);
|
||||
|
||||
b.Property<string>("HomeUrl")
|
||||
.HasMaxLength(2083);
|
||||
b.Property<string>("HomeUrl")
|
||||
.HasMaxLength(2083);
|
||||
|
||||
b.Property<string>("IssuesUrl")
|
||||
.HasMaxLength(2083);
|
||||
b.Property<string>("IssuesUrl")
|
||||
.HasMaxLength(2083);
|
||||
|
||||
b.Property<DateTime?>("ModifiedDateUtc")
|
||||
.ValueGeneratedOnAddOrUpdate();
|
||||
b.Property<DateTime?>("ModifiedDateUtc")
|
||||
.ValueGeneratedOnAddOrUpdate();
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasMaxLength(126);
|
||||
b.Property<string>("Name")
|
||||
.HasMaxLength(126);
|
||||
|
||||
b.Property<string>("ViewUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(2083);
|
||||
b.Property<string>("ViewUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(2083);
|
||||
|
||||
b.HasKey("Id");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("List");
|
||||
});
|
||||
b.ToTable("List");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FilterLists.Data.Models.TableCsv", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("AddedDateUtc")
|
||||
.ValueGeneratedOnAdd();
|
||||
b.Property<DateTime>("AddedDateUtc")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime?>("ModifiedDateUtc")
|
||||
.ValueGeneratedOnAddOrUpdate();
|
||||
b.Property<DateTime?>("ModifiedDateUtc")
|
||||
.ValueGeneratedOnAddOrUpdate();
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(126);
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(126);
|
||||
|
||||
b.Property<string>("Url")
|
||||
.IsRequired()
|
||||
.HasMaxLength(2083);
|
||||
b.Property<string>("Url")
|
||||
.IsRequired()
|
||||
.HasMaxLength(2083);
|
||||
|
||||
b.HasKey("Id");
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("TableCsv");
|
||||
});
|
||||
b.ToTable("TableCsv");
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue