WorldTime/Data/Migrations/20220629003046_RemoveLastUpdated.cs

28 lines
737 B
C#
Raw Normal View History

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace WorldTime.Data.Migrations
{
public partial class RemoveLastUpdated : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "last_active",
table: "userdata");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "last_active",
table: "userdata",
type: "timestamp with time zone",
nullable: false,
defaultValueSql: "now()");
}
}
}