WorldTime/Data/Migrations/20220629003046_RemoveLastUpdated.cs
Noi 191ac13355 Remove last active value
Recent activity is no longer required for users to be shown on listings.
2022-06-28 18:07:02 -07:00

27 lines
737 B
C#

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()");
}
}
}