mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
2.2 KiB
47 lines
2.2 KiB
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace Volo.CmsKit.Migrations
|
|
{
|
|
public partial class PageSlugChange : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "CmsPages",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
Title = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
|
Slug = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: false),
|
|
Description = table.Column<string>(type: "nvarchar(512)", maxLength: 512, nullable: true),
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_CmsPages", x => x.Id);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_CmsPages_TenantId_Slug",
|
|
table: "CmsPages",
|
|
columns: new[] { "TenantId", "Slug" });
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "CmsPages");
|
|
}
|
|
}
|
|
}
|