using Microsoft.EntityFrameworkCore.Migrations; using NodaTime; #nullable disable namespace DysonNetwork.Sphere.Migrations { /// public partial class RealmAndChat : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "created_at", table: "publisher_members", type: "timestamp with time zone", nullable: false, defaultValue: NodaTime.Instant.FromUnixTimeTicks(0L)); migrationBuilder.AddColumn( name: "deleted_at", table: "publisher_members", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "updated_at", table: "publisher_members", type: "timestamp with time zone", nullable: false, defaultValue: NodaTime.Instant.FromUnixTimeTicks(0L)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "created_at", table: "publisher_members"); migrationBuilder.DropColumn( name: "deleted_at", table: "publisher_members"); migrationBuilder.DropColumn( name: "updated_at", table: "publisher_members"); } } }