| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- using Microsoft.EntityFrameworkCore.Migrations;
- using System;
- using System.Collections.Generic;
- namespace Winsoft.GOV.XF.WebApi.WXCore.Migrations
- {
- public partial class update_users : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn<string>(
- name: "City",
- table: "WXUser",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "Country",
- table: "WXUser",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "HeadimgUrl",
- table: "WXUser",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "Nickname",
- table: "WXUser",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "Province",
- table: "WXUser",
- type: "longtext",
- nullable: true);
- migrationBuilder.AddColumn<int>(
- name: "Sex",
- table: "WXUser",
- type: "int",
- nullable: false,
- defaultValue: 0);
- migrationBuilder.AddColumn<string>(
- name: "UnionId",
- table: "WXUser",
- type: "longtext",
- nullable: true);
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "City",
- table: "WXUser");
- migrationBuilder.DropColumn(
- name: "Country",
- table: "WXUser");
- migrationBuilder.DropColumn(
- name: "HeadimgUrl",
- table: "WXUser");
- migrationBuilder.DropColumn(
- name: "Nickname",
- table: "WXUser");
- migrationBuilder.DropColumn(
- name: "Province",
- table: "WXUser");
- migrationBuilder.DropColumn(
- name: "Sex",
- table: "WXUser");
- migrationBuilder.DropColumn(
- name: "UnionId",
- table: "WXUser");
- }
- }
- }
|