mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-22 14:44:36 +00:00
27 lines
737 B
C#
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()");
|
|
}
|
|
}
|
|
}
|