You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.5 KiB
47 lines
1.5 KiB
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace LY.MicroService.RealtimeMessage.Migrations
|
|
{
|
|
public partial class AddFieldOnlineAvatar : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "LastOnlineTime",
|
|
table: "AppUserChatCards",
|
|
type: "datetime(6)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "State",
|
|
table: "AppUserChatCards",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "AvatarUrl",
|
|
table: "AppChatGroups",
|
|
type: "varchar(128)",
|
|
maxLength: 128,
|
|
nullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "LastOnlineTime",
|
|
table: "AppUserChatCards");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "State",
|
|
table: "AppUserChatCards");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "AvatarUrl",
|
|
table: "AppChatGroups");
|
|
}
|
|
}
|
|
}
|
|
|