mirror of
https://github.com/Stone-Red-Code/EchoHub.git
synced 2026-09-04 09:06:07 +02:00
30 lines
770 B
C#
30 lines
770 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace EchoHub.Server.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddChannelIsPublic : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsPublic",
|
|
table: "Channels",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsPublic",
|
|
table: "Channels");
|
|
}
|
|
}
|
|
}
|