using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Newsbot.Collector.Database.Migrations { /// public partial class addauthortable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "AuthorImage", table: "Articles"); migrationBuilder.DropColumn( name: "AuthorName", table: "Articles"); migrationBuilder.AddColumn( name: "AuthorId", table: "Articles", type: "uuid", nullable: false, defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "AuthorId", table: "Articles"); migrationBuilder.AddColumn( name: "AuthorImage", table: "Articles", type: "text", nullable: true); migrationBuilder.AddColumn( name: "AuthorName", table: "Articles", type: "text", nullable: false, defaultValue: ""); } } }