Browse Source

迁移文件

master
wxd 12 months ago
parent
commit
b61ace47cd
  1. 8090
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20241115113522_update_wechat_order_refund_refund_money.Designer.cs
  2. 92
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20241115113522_update_wechat_order_refund_refund_money.cs
  3. 50
      src/Shentun.WebPeis.EntityFrameworkCore/Migrations/WebPeisDbContextModelSnapshot.cs

8090
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20241115113522_update_wechat_order_refund_refund_money.Designer.cs
File diff suppressed because it is too large
View File

92
src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20241115113522_update_wechat_order_refund_refund_money.cs

@ -0,0 +1,92 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Shentun.WebPeis.Migrations
{
/// <inheritdoc />
public partial class update_wechat_order_refund_refund_money : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "is_charge",
table: "appoint_patient_register");
migrationBuilder.RenameColumn(
name: "refundr_money",
table: "wechat_order_refund",
newName: "refund_money");
migrationBuilder.AddColumn<char>(
name: "charge_flag",
table: "appoint_patient_register",
type: "character(1)",
maxLength: 1,
nullable: false,
defaultValueSql: "'0'::bpchar");
migrationBuilder.AlterColumn<string>(
name: "display_name",
table: "abp_organization_units",
type: "character varying(128)",
maxLength: 128,
nullable: false,
oldClrType: typeof(string),
oldType: "text",
oldMaxLength: 128);
migrationBuilder.AlterColumn<string>(
name: "code",
table: "abp_organization_units",
type: "character varying(95)",
maxLength: 95,
nullable: false,
oldClrType: typeof(string),
oldType: "text",
oldMaxLength: 95);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "charge_flag",
table: "appoint_patient_register");
migrationBuilder.RenameColumn(
name: "refund_money",
table: "wechat_order_refund",
newName: "refundr_money");
migrationBuilder.AddColumn<char>(
name: "is_charge",
table: "appoint_patient_register",
type: "character(1)",
maxLength: 1,
nullable: false,
defaultValueSql: "'N'::bpchar");
migrationBuilder.AlterColumn<string>(
name: "display_name",
table: "abp_organization_units",
type: "text",
maxLength: 128,
nullable: false,
oldClrType: typeof(string),
oldType: "character varying(128)",
oldMaxLength: 128);
migrationBuilder.AlterColumn<string>(
name: "code",
table: "abp_organization_units",
type: "text",
maxLength: 95,
nullable: false,
oldClrType: typeof(string),
oldType: "character varying(95)",
oldMaxLength: 95);
}
}
}

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

@ -88,6 +88,13 @@ namespace Shentun.WebPeis.Migrations
.HasColumnName("appoint_date") .HasColumnName("appoint_date")
.HasDefaultValueSql("date(timezone('UTC-8'::text, now()))"); .HasDefaultValueSql("date(timezone('UTC-8'::text, now()))");
b.Property<char>("ChargeFlag")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("charge_flag")
.HasDefaultValueSql("'0'::bpchar");
b.Property<char>("CompleteFlag") b.Property<char>("CompleteFlag")
.ValueGeneratedOnAdd() .ValueGeneratedOnAdd()
.HasMaxLength(1) .HasMaxLength(1)
@ -126,13 +133,6 @@ namespace Shentun.WebPeis.Migrations
.HasColumnName("height") .HasColumnName("height")
.HasComment("身高"); .HasComment("身高");
b.Property<char>("IsCharge")
.ValueGeneratedOnAdd()
.HasMaxLength(1)
.HasColumnType("character(1)")
.HasColumnName("is_charge")
.HasDefaultValueSql("'N'::bpchar");
b.Property<DateTime?>("LastModificationTime") b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp(6) without time zone") .HasColumnType("timestamp(6) without time zone")
.HasColumnName("last_modification_time"); .HasColumnName("last_modification_time");
@ -976,6 +976,22 @@ namespace Shentun.WebPeis.Migrations
.HasColumnType("character varying(40)") .HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp"); .HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("PayModeId") b.Property<string>("PayModeId")
.IsRequired() .IsRequired()
.HasMaxLength(4) .HasMaxLength(4)
@ -1071,6 +1087,22 @@ namespace Shentun.WebPeis.Migrations
.HasColumnType("character varying(40)") .HasColumnType("character varying(40)")
.HasColumnName("concurrency_stamp"); .HasColumnName("concurrency_stamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("creation_time");
b.Property<Guid?>("CreatorId")
.HasColumnType("uuid")
.HasColumnName("creator_id");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modification_time");
b.Property<Guid?>("LastModifierId")
.HasColumnType("uuid")
.HasColumnName("last_modifier_id");
b.Property<string>("PayModeId") b.Property<string>("PayModeId")
.IsRequired() .IsRequired()
.HasMaxLength(4) .HasMaxLength(4)
@ -5206,9 +5238,9 @@ namespace Shentun.WebPeis.Migrations
.HasColumnName("refund_id") .HasColumnName("refund_id")
.HasComment("微信系统生成的退款号"); .HasComment("微信系统生成的退款号");
b.Property<int>("RefundrMoney")
b.Property<int>("RefundMoney")
.HasColumnType("integer") .HasColumnType("integer")
.HasColumnName("refundr_money")
.HasColumnName("refund_money")
.HasComment("退款金额(分)"); .HasComment("退款金额(分)");
b.Property<string>("Status") b.Property<string>("Status")

Loading…
Cancel
Save