using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace yaflay.ru.Migrations { /// public partial class Migrate191220231734 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "uri", table: "Redirects", type: "text", nullable: true, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "redirectTo", table: "Redirects", type: "text", nullable: true, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "discordId", table: "Author", type: "numeric(20,0)", nullable: false, oldClrType: typeof(int), oldType: "integer"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "uri", table: "Redirects", type: "text", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "redirectTo", table: "Redirects", type: "text", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "discordId", table: "Author", type: "integer", nullable: false, oldClrType: typeof(decimal), oldType: "numeric(20,0)"); } } }