|
|
|
@ -0,0 +1,67 @@ |
|
|
|
using System; |
|
|
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
namespace Shentun.Peis.Migrations |
|
|
|
{ |
|
|
|
public partial class register_check_index : Migration |
|
|
|
{ |
|
|
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
|
|
{ |
|
|
|
migrationBuilder.AlterColumn<Guid>( |
|
|
|
name: "parent_id", |
|
|
|
table: "critical_follow_value_type", |
|
|
|
type: "uuid", |
|
|
|
nullable: true, |
|
|
|
comment: "父编号", |
|
|
|
oldClrType: typeof(Guid), |
|
|
|
oldType: "uuid", |
|
|
|
oldFixedLength: true, |
|
|
|
oldComment: "父编号"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "ix_register_check_charge_request_id", |
|
|
|
table: "register_check_asbitem", |
|
|
|
column: "charge_request_id"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "ix_register_check_patient_register_id", |
|
|
|
table: "register_check", |
|
|
|
column: "patient_register_id"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "ix_register_check_1", |
|
|
|
table: "register_check", |
|
|
|
column: "check_request_no"); |
|
|
|
} |
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
|
|
{ |
|
|
|
migrationBuilder.DropIndex( |
|
|
|
name: "ix_register_check_charge_request_id", |
|
|
|
table: "register_check_asbitem"); |
|
|
|
|
|
|
|
migrationBuilder.DropIndex( |
|
|
|
name: "ix_register_check_patient_register_id", |
|
|
|
table: "register_check"); |
|
|
|
|
|
|
|
migrationBuilder.DropIndex( |
|
|
|
name: "ix_register_check_1", |
|
|
|
table: "register_check"); |
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<Guid>( |
|
|
|
name: "parent_id", |
|
|
|
table: "critical_follow_value_type", |
|
|
|
type: "uuid", |
|
|
|
fixedLength: true, |
|
|
|
nullable: false, |
|
|
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|
|
|
comment: "父编号", |
|
|
|
oldClrType: typeof(Guid), |
|
|
|
oldType: "uuid", |
|
|
|
oldNullable: true, |
|
|
|
oldComment: "父编号"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |