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