7 changed files with 13687 additions and 69 deletions
-
112src/Shentun.Peis.Application/DataMigrations/BaseDataHandleAppService.cs
-
3src/Shentun.Peis.Domain/FieldComparisons/FieldComparison.cs
-
2src/Shentun.Peis.EntityFrameworkCore/DbMapping/FieldComparisons/FieldComparisonDbMapping.cs
-
1src/Shentun.Peis.EntityFrameworkCore/EntityFrameworkCore/PeisDbContext.cs
-
13492src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418082314_init20240418002.Designer.cs
-
56src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418082314_init20240418002.cs
-
90src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
13492
src/Shentun.Peis.EntityFrameworkCore/Migrations/20240418082314_init20240418002.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,56 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class init20240418002 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "FieldComparisons"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "field_comparison", |
|||
columns: table => new |
|||
{ |
|||
id = table.Column<Guid>(type: "uuid", nullable: false), |
|||
table_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "表名"), |
|||
field_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "字段名"), |
|||
old_key_value = table.Column<string>(type: "text", nullable: false, comment: "老系统主键值"), |
|||
new_key_value = table.Column<string>(type: "text", nullable: false, comment: "新系统主键值"), |
|||
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_field_comparison", x => x.id); |
|||
}, |
|||
comment: "字段对照"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "field_comparison"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "FieldComparisons", |
|||
columns: table => new |
|||
{ |
|||
id = table.Column<Guid>(type: "uuid", nullable: false), |
|||
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
|||
field_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "字段名"), |
|||
new_key_value = table.Column<string>(type: "text", nullable: false, comment: "新系统主键值"), |
|||
old_key_value = table.Column<string>(type: "text", nullable: false, comment: "老系统主键值"), |
|||
table_name = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "表名") |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_FieldComparisons", x => x.id); |
|||
}, |
|||
comment: "字段对照"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue