50 lines
1.4 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|