33 lines
860 B
C#
33 lines
860 B
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Knot.Modules.Conversations.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddIsImportingToChat : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsImporting",
|
|
schema: "chats",
|
|
table: "Chats",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsImporting",
|
|
schema: "chats",
|
|
table: "Chats");
|
|
}
|
|
}
|
|
}
|