using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SlpModularCms.Core.Migrations
{
///
public partial class AddSiteSettings : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "SiteSettings",
columns: table => new
{
Id = table.Column(type: "int", nullable: false),
MailFromAddress = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
MailFromName = table.Column(type: "varchar(80)", maxLength: 80, nullable: true),
UpdatedAt = table.Column(type: "datetime", nullable: false),
UpdatedBy = table.Column(type: "varchar(256)", maxLength: 256, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_SiteSettings", x => x.Id);
})
.Annotation("MySQL:Charset", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "SiteSettings");
}
}
}