| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- using Microsoft.EntityFrameworkCore.Migrations;
- using System;
- using System.Collections.Generic;
- namespace Winsoft.GOV.XF.WebApi.WXCore.Migrations
- {
- public partial class UpdateBundle1 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn<string>(
- name: "Advice",
- table: "Bundle",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "County_id",
- table: "Bundle",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<int>(
- name: "IsPublic",
- table: "Bundle",
- type: "int",
- nullable: false,
- defaultValue: 0);
- migrationBuilder.AddColumn<string>(
- name: "Key",
- table: "Bundle",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "Mobile",
- table: "Bundle",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "Name",
- table: "Bundle",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "SearchCode",
- table: "Bundle",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "Title",
- table: "Bundle",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<int>(
- name: "Type",
- table: "Bundle",
- type: "int",
- nullable: false,
- defaultValue: 0);
- migrationBuilder.AddColumn<string>(
- name: "Unit_id",
- table: "Bundle",
- type: "longtext",
- nullable: true);
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "Advice",
- table: "Bundle");
- migrationBuilder.DropColumn(
- name: "County_id",
- table: "Bundle");
- migrationBuilder.DropColumn(
- name: "IsPublic",
- table: "Bundle");
- migrationBuilder.DropColumn(
- name: "Key",
- table: "Bundle");
- migrationBuilder.DropColumn(
- name: "Mobile",
- table: "Bundle");
- migrationBuilder.DropColumn(
- name: "Name",
- table: "Bundle");
- migrationBuilder.DropColumn(
- name: "SearchCode",
- table: "Bundle");
- migrationBuilder.DropColumn(
- name: "Title",
- table: "Bundle");
- migrationBuilder.DropColumn(
- name: "Type",
- table: "Bundle");
- migrationBuilder.DropColumn(
- name: "Unit_id",
- table: "Bundle");
- }
- }
- }
|