using System; using Microsoft.EntityFrameworkCore.Migrations; namespace API.Data.Migrations { public partial class EntityTimestamps : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Created", table: "Volume", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "LastModified", table: "Volume", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "Created", table: "Series", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "LastModified", table: "Series", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "Created", table: "Library", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "LastModified", table: "Library", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Created", table: "Volume"); migrationBuilder.DropColumn( name: "LastModified", table: "Volume"); migrationBuilder.DropColumn( name: "Created", table: "Series"); migrationBuilder.DropColumn( name: "LastModified", table: "Series"); migrationBuilder.DropColumn( name: "Created", table: "Library"); migrationBuilder.DropColumn( name: "LastModified", table: "Library"); } } }