using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
///
public partial class DigitalSources : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DigitalSources",
columns: table => new
{
Id = table.Column(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
UrlSlug = table.Column(type: "nvarchar(max)", nullable: true),
ShortName = table.Column(type: "nvarchar(max)", nullable: true),
FullName = table.Column(type: "nvarchar(max)", nullable: true),
SourceType = table.Column(type: "nvarchar(max)", nullable: true),
CoupletsCount = table.Column(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_DigitalSources", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DigitalSources");
}
}
}