refactor(dir): ♻ re-gen Initial migration

This commit is contained in:
Collin M. Barrett 2021-11-20 16:58:25 -06:00
parent 5ec338f357
commit 580be79d5d
5 changed files with 71 additions and 248672 deletions

View file

@ -11,7 +11,7 @@
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
[DbContext(typeof(QueryDbContext))]
[Migration("20211119110803_Initial")]
[Migration("20211120225809_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -75,6 +75,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasColumnType("text")
.HasColumnName("home_url");
b.Property<bool>("IsApproved")
.HasColumnType("boolean")
.HasColumnName("is_approved");
b.Property<string>("IssuesUrl")
.HasColumnType("text")
.HasColumnName("issues_url");
@ -258,6 +262,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasColumnName("iso6391")
.IsFixedLength();
b.Property<bool>("IsApproved")
.HasColumnType("boolean")
.HasColumnName("is_approved");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text")
@ -282,6 +290,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
b.Property<bool>("IsApproved")
.HasColumnType("boolean")
.HasColumnName("is_approved");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text")
@ -332,6 +344,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasColumnType("text")
.HasColumnName("email_address");
b.Property<bool>("IsApproved")
.HasColumnType("boolean")
.HasColumnName("is_approved");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text")
@ -395,6 +411,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasColumnType("text")
.HasColumnName("home_url");
b.Property<bool>("IsApproved")
.HasColumnType("boolean")
.HasColumnName("is_approved");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text")
@ -448,6 +468,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasColumnType("text")
.HasColumnName("description");
b.Property<bool>("IsApproved")
.HasColumnType("boolean")
.HasColumnName("is_approved");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text")
@ -480,6 +504,10 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder)
.HasColumnType("text")
.HasColumnName("description");
b.Property<bool>("IsApproved")
.HasColumnType("boolean")
.HasColumnName("is_approved");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("text")

View file

@ -14,7 +14,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
columns: table => new
{
iso6391 = table.Column<string>(type: "character(2)", fixedLength: true, maxLength: 2, nullable: false),
name = table.Column<string>(type: "text", nullable: false)
name = table.Column<string>(type: "text", nullable: false),
is_approved = table.Column<bool>(type: "boolean", nullable: false)
},
constraints: table =>
{
@ -31,7 +32,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
url = table.Column<string>(type: "text", nullable: true),
permits_modification = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
permits_distribution = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
permits_commercial_use = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false)
permits_commercial_use = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
is_approved = table.Column<bool>(type: "boolean", nullable: false)
},
constraints: table =>
{
@ -47,7 +49,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
name = table.Column<string>(type: "text", nullable: false),
url = table.Column<string>(type: "text", nullable: true),
email_address = table.Column<string>(type: "text", nullable: true),
twitter_handle = table.Column<string>(type: "text", nullable: true)
twitter_handle = table.Column<string>(type: "text", nullable: true),
is_approved = table.Column<bool>(type: "boolean", nullable: false)
},
constraints: table =>
{
@ -64,7 +67,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
description = table.Column<string>(type: "text", nullable: true),
home_url = table.Column<string>(type: "text", nullable: true),
download_url = table.Column<string>(type: "text", nullable: true),
supports_abp_url_scheme = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false)
supports_abp_url_scheme = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
is_approved = table.Column<bool>(type: "boolean", nullable: false)
},
constraints: table =>
{
@ -79,7 +83,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
name = table.Column<string>(type: "text", nullable: false),
description = table.Column<string>(type: "text", nullable: true),
url = table.Column<string>(type: "text", nullable: true)
url = table.Column<string>(type: "text", nullable: true),
is_approved = table.Column<bool>(type: "boolean", nullable: false)
},
constraints: table =>
{
@ -93,7 +98,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
id = table.Column<int>(type: "integer", nullable: false)
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
name = table.Column<string>(type: "text", nullable: false),
description = table.Column<string>(type: "text", nullable: true)
description = table.Column<string>(type: "text", nullable: true),
is_approved = table.Column<bool>(type: "boolean", nullable: false)
},
constraints: table =>
{
@ -117,7 +123,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
forum_url = table.Column<string>(type: "text", nullable: true),
chat_url = table.Column<string>(type: "text", nullable: true),
email_address = table.Column<string>(type: "text", nullable: true),
donate_url = table.Column<string>(type: "text", nullable: true)
donate_url = table.Column<string>(type: "text", nullable: true),
is_approved = table.Column<bool>(type: "boolean", nullable: false)
},
constraints: table =>
{