manager-service/ManagerService/Migrations/20250319134251_CleanWeatherInConfiguration.cs
2025-03-19 15:01:58 +01:00

50 lines
1.4 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ManagerService.Migrations
{
/// <inheritdoc />
public partial class CleanWeatherInConfiguration : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "WeatherCity",
table: "Configurations");
migrationBuilder.DropColumn(
name: "WeatherResult",
table: "Configurations");
migrationBuilder.DropColumn(
name: "WeatherUpdatedDate",
table: "Configurations");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "WeatherCity",
table: "Configurations",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "WeatherResult",
table: "Configurations",
type: "text",
nullable: true);
migrationBuilder.AddColumn<DateTimeOffset>(
name: "WeatherUpdatedDate",
table: "Configurations",
type: "timestamp with time zone",
nullable: true);
}
}
}