mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
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.
43 lines
1.6 KiB
43 lines
1.6 KiB
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace Volo.CmsKit.Migrations
|
|
{
|
|
public partial class Added_Reactions : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "CmsUserReactions",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<Guid>(nullable: false),
|
|
EntityType = table.Column<string>(maxLength: 64, nullable: false),
|
|
EntityId = table.Column<string>(maxLength: 64, nullable: false),
|
|
ReactionName = table.Column<string>(maxLength: 32, nullable: false),
|
|
CreatorId = table.Column<Guid>(nullable: false),
|
|
CreationTime = table.Column<DateTime>(nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_CmsUserReactions", x => x.Id);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_CmsUserReactions_EntityType_EntityId",
|
|
table: "CmsUserReactions",
|
|
columns: new[] { "EntityType", "EntityId" });
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_CmsUserReactions_CreatorId_EntityType_EntityId_ReactionName",
|
|
table: "CmsUserReactions",
|
|
columns: new[] { "CreatorId", "EntityType", "EntityId", "ReactionName" });
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "CmsUserReactions");
|
|
}
|
|
}
|
|
}
|
|
|