using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SanctionsSearch.Worker.Migrations { /// public partial class update_models_with_timestamps : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "CreatedAt", table: "Sdns", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "UpdatedAt", table: "Sdns", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "CreatedAt", table: "Comments", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "UpdatedAt", table: "Comments", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "CreatedAt", table: "Aliases", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "UpdatedAt", table: "Aliases", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "CreatedAt", table: "Addresses", type: "TEXT", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "UpdatedAt", table: "Addresses", 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: "CreatedAt", table: "Sdns"); migrationBuilder.DropColumn( name: "UpdatedAt", table: "Sdns"); migrationBuilder.DropColumn( name: "CreatedAt", table: "Comments"); migrationBuilder.DropColumn( name: "UpdatedAt", table: "Comments"); migrationBuilder.DropColumn( name: "CreatedAt", table: "Aliases"); migrationBuilder.DropColumn( name: "UpdatedAt", table: "Aliases"); migrationBuilder.DropColumn( name: "CreatedAt", table: "Addresses"); migrationBuilder.DropColumn( name: "UpdatedAt", table: "Addresses"); } } }