9 changed files with 14092 additions and 211 deletions
-
3src/Shentun.Peis.Application.Contracts/ColumnReferences/ColumnReferenceDto.cs
-
7src/Shentun.Peis.Application.Contracts/ColumnReferences/CreateColumnReferenceDto.cs
-
10src/Shentun.Peis.Application.Contracts/ColumnReferences/UpdateColumnReferenceDto.cs
-
214src/Shentun.Peis.Application/ColumnReferences/ColumnReferenceAppService.cs
-
1src/Shentun.Peis.Application/Shentun.Peis.Application.csproj
-
28src/Shentun.Peis.Domain/ColumnReferences/ColumnReferenceManager.cs
-
13836src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424103142_init20240424002.Designer.cs
-
100src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424103142_init20240424002.cs
-
104src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
13836
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240424103142_init20240424002.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,100 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace Shentun.Peis.Migrations |
||||
|
{ |
||||
|
public partial class init20240424002 : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropForeignKey( |
||||
|
name: "fk_columnreference_columnreferenceplugins", |
||||
|
table: "column_reference"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "column_reference_plug_ins"); |
||||
|
|
||||
|
migrationBuilder.DropIndex( |
||||
|
name: "IX_column_reference_column_reference_plug_ins_id", |
||||
|
table: "column_reference"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "column_reference_plug_ins_id", |
||||
|
table: "column_reference"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateOnly>( |
||||
|
name: "BRITHDAY", |
||||
|
table: "L_JYTMXX_TJ", |
||||
|
type: "date", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "timestamp without time zone"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "parm_value", |
||||
|
table: "column_reference", |
||||
|
type: "character varying(1000)", |
||||
|
maxLength: 1000, |
||||
|
nullable: true); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "parm_value", |
||||
|
table: "column_reference"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "BRITHDAY", |
||||
|
table: "L_JYTMXX_TJ", |
||||
|
type: "timestamp without time zone", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateOnly), |
||||
|
oldType: "date"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<Guid>( |
||||
|
name: "column_reference_plug_ins_id", |
||||
|
table: "column_reference", |
||||
|
type: "uuid", |
||||
|
nullable: false, |
||||
|
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
||||
|
comment: "插件ID"); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "column_reference_plug_ins", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"), |
||||
|
assembly_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false, comment: "Assembly名称"), |
||||
|
class_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: false, comment: "Class名称"), |
||||
|
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
||||
|
creation_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
creator_id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
display_name = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false, comment: "名称"), |
||||
|
display_order = table.Column<int>(type: "integer", nullable: false, comment: "显示顺序"), |
||||
|
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
||||
|
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false), |
||||
|
parm_value = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true, comment: "配置参数") |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_column_reference_plug_ins", x => x.id); |
||||
|
}, |
||||
|
comment: "字段对照插件表"); |
||||
|
|
||||
|
migrationBuilder.CreateIndex( |
||||
|
name: "IX_column_reference_column_reference_plug_ins_id", |
||||
|
table: "column_reference", |
||||
|
column: "column_reference_plug_ins_id"); |
||||
|
|
||||
|
migrationBuilder.AddForeignKey( |
||||
|
name: "fk_columnreference_columnreferenceplugins", |
||||
|
table: "column_reference", |
||||
|
column: "column_reference_plug_ins_id", |
||||
|
principalTable: "column_reference_plug_ins", |
||||
|
principalColumn: "id"); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue