10 changed files with 15001 additions and 37 deletions
-
952src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs
-
85src/Shentun.Peis.Domain/ImageHelper.cs
-
2src/Shentun.Peis.Domain/RegisterCheckSummarys/RegisterCheckSummary.cs
-
2src/Shentun.Peis.Domain/SumSuggestionContents/SumSuggestionContent.cs
-
2src/Shentun.Peis.Domain/SumSummaryContents/SumSummaryContent.cs
-
13788src/Shentun.Peis.EntityFrameworkCore/Migrations/20240423075634_init20240423.Designer.cs
-
139src/Shentun.Peis.EntityFrameworkCore/Migrations/20240423075634_init20240423.cs
-
14src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
-
50test/Shentun.Peis.Application.Tests/BaseDataHandleTest.cs
-
4test/Shentun.Peis.EntityFrameworkCore.Tests/EntityFrameworkCore/PeisEntityFrameworkCoreTestModule.cs
952
src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
13788
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240423075634_init20240423.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,139 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class init20240423 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "summary_content", |
|||
table: "sum_summary_content", |
|||
type: "character varying(3000)", |
|||
maxLength: 3000, |
|||
nullable: false, |
|||
comment: "建议内容", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(100)", |
|||
oldMaxLength: 100, |
|||
oldComment: "建议内容"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "suggestion_content", |
|||
table: "sum_suggestion_content", |
|||
type: "character varying(10000)", |
|||
maxLength: 10000, |
|||
nullable: false, |
|||
comment: "建议内容", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(100)", |
|||
oldMaxLength: 100, |
|||
oldComment: "建议内容"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "report_prompt", |
|||
table: "result_status", |
|||
type: "character varying(8)", |
|||
maxLength: 8, |
|||
nullable: true, |
|||
comment: "报告单提示", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(8)", |
|||
oldMaxLength: 8, |
|||
oldComment: "报告单提示"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "data_input_prompt", |
|||
table: "result_status", |
|||
type: "character varying(8)", |
|||
maxLength: 8, |
|||
nullable: true, |
|||
comment: "数据录入提示", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(8)", |
|||
oldMaxLength: 8, |
|||
oldComment: "数据录入提示"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "summary", |
|||
table: "register_check_summary", |
|||
type: "character varying(2000)", |
|||
maxLength: 2000, |
|||
nullable: false, |
|||
comment: "综述", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(500)", |
|||
oldMaxLength: 500, |
|||
oldComment: "综述"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "summary_content", |
|||
table: "sum_summary_content", |
|||
type: "character varying(100)", |
|||
maxLength: 100, |
|||
nullable: false, |
|||
comment: "建议内容", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(3000)", |
|||
oldMaxLength: 3000, |
|||
oldComment: "建议内容"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "suggestion_content", |
|||
table: "sum_suggestion_content", |
|||
type: "character varying(100)", |
|||
maxLength: 100, |
|||
nullable: false, |
|||
comment: "建议内容", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(10000)", |
|||
oldMaxLength: 10000, |
|||
oldComment: "建议内容"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "report_prompt", |
|||
table: "result_status", |
|||
type: "character varying(8)", |
|||
maxLength: 8, |
|||
nullable: false, |
|||
defaultValue: "", |
|||
comment: "报告单提示", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(8)", |
|||
oldMaxLength: 8, |
|||
oldNullable: true, |
|||
oldComment: "报告单提示"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "data_input_prompt", |
|||
table: "result_status", |
|||
type: "character varying(8)", |
|||
maxLength: 8, |
|||
nullable: false, |
|||
defaultValue: "", |
|||
comment: "数据录入提示", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(8)", |
|||
oldMaxLength: 8, |
|||
oldNullable: true, |
|||
oldComment: "数据录入提示"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "summary", |
|||
table: "register_check_summary", |
|||
type: "character varying(500)", |
|||
maxLength: 500, |
|||
nullable: false, |
|||
comment: "综述", |
|||
oldClrType: typeof(string), |
|||
oldType: "character varying(2000)", |
|||
oldMaxLength: 2000, |
|||
oldComment: "综述"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue