using Microsoft.EntityFrameworkCore.Migrations; using NodaTime; #nullable disable namespace Foxchat.Chat.Migrations { /// public partial class AddLastFetchedAtToUsers : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "last_fetched_at", table: "users", type: "timestamp with time zone", nullable: false, defaultValue: NodaTime.Instant.FromUnixTimeTicks(0L)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "last_fetched_at", table: "users"); } } }