2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2023-04-20 15:01:19 +05:00
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
|
|
{
|
|
|
|
public partial class UpdateTable_t_faq_Nullable_Answer : Migration
|
|
|
|
{
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
{
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
|
|
name: "answer",
|
|
|
|
table: "t_faq",
|
|
|
|
type: "text",
|
|
|
|
nullable: true,
|
|
|
|
comment: "Текст ответа",
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
oldType: "text",
|
|
|
|
oldComment: "Текст ответа");
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
{
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
|
|
name: "answer",
|
|
|
|
table: "t_faq",
|
|
|
|
type: "text",
|
|
|
|
nullable: false,
|
|
|
|
defaultValue: "",
|
|
|
|
comment: "Текст ответа",
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
oldType: "text",
|
|
|
|
oldNullable: true,
|
|
|
|
oldComment: "Текст ответа");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|