| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Business.Migrations
- {
- public partial class removeMysqlNotMap : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "srm_pr_main");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "srm_po_occupy");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "srm_po_main");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "srm_po_list");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "mes_oorder");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "mes_morder");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "mes_mooccupy");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "mes_moentry");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "ic_plan");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "ic_item_stock");
- migrationBuilder.DropColumn(
- name: "mongodb_id",
- table: "ic_item_stock");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "ic_item_pur");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "ic_factory_details");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "crm_seorderentry");
- migrationBuilder.DropColumn(
- name: "bang_id",
- table: "crm_seorder");
- migrationBuilder.AlterTable(
- name: "wms_shipnoticelist",
- comment: "发运通知单详情清单",
- oldComment: "发货通知单明细表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "wms_shipnotice",
- comment: "发运通知单",
- oldComment: "发货通知单")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "wms_prdprogress",
- comment: "进度字典表",
- oldComment: "进度字典")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "sys_measure_unit",
- comment: "计量单位信息表",
- oldComment: "计量单位表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "srm_supplier",
- comment: "供应商",
- oldComment: "供应商表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "sim_issue_type",
- comment: "上升时间",
- oldComment: "sim事项类别表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_workshop",
- comment: "工位表(工作中心)",
- oldComment: "工位表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_work_calendar",
- comment: "工作日历",
- oldComment: "工作日历表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_tech_proc_workshop_icitem",
- comment: "发料到工序表",
- oldComment: "发料到工位表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_tech_proc_workshop_equipment",
- comment: "工序关联设备表",
- oldComment: "工艺路径关联设备表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_mereport",
- comment: "生产报工记录表",
- oldComment: "生产报工记录")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_merecheck",
- comment: "生产报检记录表",
- oldComment: "生产报检记录")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "ic_item_inventory",
- comment: "物料库存明细表",
- oldComment: "物料库存信息表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "crm_seorder",
- comment: "销售订单表",
- oldComment: "销售订单")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "crm_customer",
- comment: "客户",
- oldComment: "客户表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AddColumn<decimal>(
- name: "lqt",
- table: "mes_tech_process",
- type: "decimal(20,8)",
- precision: 20,
- scale: 8,
- nullable: true,
- comment: "前置等待时间");
- migrationBuilder.AddColumn<string>(
- name: "version",
- table: "ic_bom_child",
- type: "varchar(80)",
- maxLength: 80,
- nullable: true,
- comment: "版本")
- .Annotation("MySql:CharSet", "utf8mb4");
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "lqt",
- table: "mes_tech_process");
- migrationBuilder.DropColumn(
- name: "version",
- table: "ic_bom_child");
- migrationBuilder.AlterTable(
- name: "wms_shipnoticelist",
- comment: "发货通知单明细表",
- oldComment: "发运通知单详情清单")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "wms_shipnotice",
- comment: "发货通知单",
- oldComment: "发运通知单")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "wms_prdprogress",
- comment: "进度字典",
- oldComment: "进度字典表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "sys_measure_unit",
- comment: "计量单位表",
- oldComment: "计量单位信息表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "srm_supplier",
- comment: "供应商表",
- oldComment: "供应商")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "sim_issue_type",
- comment: "sim事项类别表",
- oldComment: "上升时间")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_workshop",
- comment: "工位表",
- oldComment: "工位表(工作中心)")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_work_calendar",
- comment: "工作日历表",
- oldComment: "工作日历")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_tech_proc_workshop_icitem",
- comment: "发料到工位表",
- oldComment: "发料到工序表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_tech_proc_workshop_equipment",
- comment: "工艺路径关联设备表",
- oldComment: "工序关联设备表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_mereport",
- comment: "生产报工记录",
- oldComment: "生产报工记录表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "mes_merecheck",
- comment: "生产报检记录",
- oldComment: "生产报检记录表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "ic_item_inventory",
- comment: "物料库存信息表",
- oldComment: "物料库存明细表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "crm_seorder",
- comment: "销售订单",
- oldComment: "销售订单表")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AlterTable(
- name: "crm_customer",
- comment: "客户表",
- oldComment: "客户")
- .Annotation("MySql:CharSet", "utf8mb4")
- .OldAnnotation("MySql:CharSet", "utf8mb4");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "srm_pr_main",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "srm_po_occupy",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "srm_po_main",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "srm_po_list",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "mes_oorder",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "mes_morder",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "mes_mooccupy",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "mes_moentry",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "ic_plan",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "ic_item_stock",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "mongodb_id",
- table: "ic_item_stock",
- type: "bigint",
- nullable: true,
- comment: "mongodb主键-用于资源检查快照");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "ic_item_pur",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "ic_factory_details",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "crm_seorderentry",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- migrationBuilder.AddColumn<long>(
- name: "bang_id",
- table: "crm_seorder",
- type: "bigint",
- nullable: true,
- comment: "计算id");
- }
- }
- }
|