3 changed files with 8223 additions and 9 deletions
-
8090src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20241115113522_update_wechat_order_refund_refund_money.Designer.cs
-
92src/Shentun.WebPeis.EntityFrameworkCore/Migrations/20241115113522_update_wechat_order_refund_refund_money.cs
-
50src/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
File diff suppressed because it is too large
View File
@ -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); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue