using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Monitoring.Monolith.Data.Migrations;

/// <inheritdoc />
public partial class EventMessageIsNotRequired : Migration
{
	/// <inheritdoc />
	protected override void Up(MigrationBuilder migrationBuilder)
	{
		_ = migrationBuilder.AlterColumn<string>(
			name: "Message",
			table: "Events",
			type: "character varying(100)",
			maxLength: 100,
			nullable: true,
			oldClrType: typeof(string),
			oldType: "character varying(100)",
			oldMaxLength: 100);
	}

	/// <inheritdoc />
	protected override void Down(MigrationBuilder migrationBuilder)
	{
		_ = migrationBuilder.AlterColumn<string>(
			name: "Message",
			table: "Events",
			type: "character varying(100)",
			maxLength: 100,
			nullable: false,
			defaultValue: "",
			oldClrType: typeof(string),
			oldType: "character varying(100)",
			oldMaxLength: 100,
			oldNullable: true);
	}
}
