gehgassi_app/gehGassiApp/gehGassiApp.Data/Migrations/20221126103801_SystemMessagesEx.cs

34 lines
932 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassiApp.Data.Migrations
{
/// <inheritdoc />
public partial class SystemMessagesEx : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "AppUserType",
table: "SystemMessages",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.Sql("DELETE FROM SystemMessages");
System.Diagnostics.Debug.WriteLine($"Migration SystemMessagesEx done");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "AppUserType",
table: "SystemMessages");
}
}
}