55 lines
1.6 KiB
C#
55 lines
1.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IM_API.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class updateuser : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Description",
|
|
table: "users",
|
|
type: "longtext",
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Email",
|
|
table: "users",
|
|
type: "longtext",
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Region",
|
|
table: "users",
|
|
type: "longtext",
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Description",
|
|
table: "users");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Email",
|
|
table: "users");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Region",
|
|
table: "users");
|
|
}
|
|
}
|
|
}
|