Browse Source

单位次数

master
wxd 10 months ago
parent
commit
8ab1d5cc17
  1. 4
      src/Shentun.WebPeis.DbMigrator/appsettings.json
  2. 7
      src/Shentun.WebPeis.EntityFrameworkCore/Configures/CustomerOrgRegisterConfigure.cs
  3. 8185
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250228085340_update_customer_org_register_add_is_question.Designer.cs
  4. 31
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250228085340_update_customer_org_register_add_is_question.cs
  5. 8
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/WebPeisDbContextModelSnapshot.cs

4
src/Shentun.WebPeis.DbMigrator/appsettings.json

@ -1,8 +1,8 @@
{
"AdminId": "3a12a8a6-beb9-fc29-b4e7-4acfb00d8370",
"ConnectionStrings": {
//"Default": "Host=140.143.162.39;Port=5432;Database=WebPeis;User ID=postgres;Password=shentun123",
"Default": "Host=192.168.2.181;Port=5432;Database=WebPeis;User ID=postgres;Password=st123"
"Default": "Host=140.143.162.39;Port=5432;Database=WebPeis;User ID=postgres;Password=shentun123"
//"Default": "Host=192.168.2.181;Port=5432;Database=WebPeis;User ID=postgres;Password=st123"
},
"Redis": {
"Configuration": "127.0.0.1"

7
src/Shentun.WebPeis.EntityFrameworkCore/Configures/CustomerOrgRegisterConfigure.cs

@ -44,6 +44,13 @@ namespace Shentun.WebPeis.Configures
.HasMaxLength(1)
.HasComment("完成标志")
.HasColumnName("is_complete");
entity.Property(e => e.IsQuestion)
.HasMaxLength(1)
.HasDefaultValueSql("'N'::bpchar")
.HasComment("是否需要填写问卷才能看报告")
.HasColumnName("is_question");
entity.Property(e => e.LastModificationTime)
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");

8185
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250228085340_update_customer_org_register_add_is_question.Designer.cs
File diff suppressed because it is too large
View File

31
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20250228085340_update_customer_org_register_add_is_question.cs

@ -0,0 +1,31 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.WebPeis.Migrations
{
/// <inheritdoc />
public partial class update_customer_org_register_add_is_question : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<char>(
name: "is_question",
table: "customer_org_register",
type: "character(1)",
maxLength: 1,
nullable: false,
defaultValueSql: "'N'::bpchar",
comment: "是否需要填写问卷才能看报告");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "is_question",
table: "customer_org_register");
}
}
}

8
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/WebPeisDbContextModelSnapshot.cs

@ -1491,6 +1491,14 @@ namespace Shentun.WebPeis.Migrations
.HasColumnName("is_complete")
.HasComment("完成标志");
b.Property<char>("IsQuestion")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_question")
.HasDefaultValueSql("'N'::bpchar")
.HasComment("是否需要填写问卷才能看报告");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time");

Loading…
Cancel
Save