| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Business.Migrations
- {
- public partial class addtable20230620 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn<string>(
- name: "is_days",
- table: "srm_purchase",
- type: "nvarchar(80)",
- maxLength: 80,
- nullable: false,
- defaultValue: "",
- comment: "每周几送货");
- migrationBuilder.AddColumn<bool>(
- name: "is_week",
- table: "srm_purchase",
- type: "bit",
- nullable: false,
- defaultValue: false,
- comment: "是否周期合并");
- migrationBuilder.AddColumn<string>(
- name: "refer_pr_billno",
- table: "srm_pr_main",
- type: "nvarchar(80)",
- maxLength: 80,
- nullable: true,
- comment: "关联pr单号");
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "is_days",
- table: "srm_purchase");
- migrationBuilder.DropColumn(
- name: "is_week",
- table: "srm_purchase");
- migrationBuilder.DropColumn(
- name: "refer_pr_billno",
- table: "srm_pr_main");
- }
- }
- }
|