9 changed files with 13517 additions and 27 deletions
-
2src/Shentun.Peis.Application.Contracts/CustomerOrgRegisters/CreateCustomerOrgRegisterDto.cs
-
4src/Shentun.Peis.Application.Contracts/CustomerOrgRegisters/CustomerOrgRegisterDto.cs
-
15src/Shentun.Peis.Application/CustomerOrgRegisters/CustomerOrgRegisterAppService.cs
-
8src/Shentun.Peis.Application/CustomerReports/CustomerReportAppService.cs
-
4src/Shentun.Peis.Domain/CustomerOrgRegisters/CustomerOrgRegister.cs
-
4src/Shentun.Peis.Domain/CustomerOrgRegisters/CustomerOrgRegisterManager.cs
-
13431src/Shentun.Peis.EntityFrameworkCore/Migrations/20240412020145_init20240412003.Designer.cs
-
62src/Shentun.Peis.EntityFrameworkCore/Migrations/20240412020145_init20240412003.cs
-
8src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
13431
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240412020145_init20240412003.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,62 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class init20240412003 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "end_time", |
|||
table: "customer_org_register", |
|||
type: "timestamp without time zone", |
|||
nullable: true, |
|||
comment: "结束日期", |
|||
oldClrType: typeof(DateOnly), |
|||
oldType: "date", |
|||
oldNullable: true, |
|||
oldComment: "结束日期"); |
|||
|
|||
migrationBuilder.AlterColumn<DateTime>( |
|||
name: "begin_time", |
|||
table: "customer_org_register", |
|||
type: "timestamp without time zone", |
|||
nullable: false, |
|||
defaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)", |
|||
comment: "开始日期", |
|||
oldClrType: typeof(DateOnly), |
|||
oldType: "date", |
|||
oldDefaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)", |
|||
oldComment: "开始日期"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<DateOnly>( |
|||
name: "end_time", |
|||
table: "customer_org_register", |
|||
type: "date", |
|||
nullable: true, |
|||
comment: "结束日期", |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone", |
|||
oldNullable: true, |
|||
oldComment: "结束日期"); |
|||
|
|||
migrationBuilder.AlterColumn<DateOnly>( |
|||
name: "begin_time", |
|||
table: "customer_org_register", |
|||
type: "date", |
|||
nullable: false, |
|||
defaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)", |
|||
comment: "开始日期", |
|||
oldClrType: typeof(DateTime), |
|||
oldType: "timestamp without time zone", |
|||
oldDefaultValueSql: "(date(timezone('UTC-8'::text, now())) - 1)", |
|||
oldComment: "开始日期"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue