Browse Source

CmsKit: re-create initial migration

pull/11705/head
Yunus Emre Kalkan 5 years ago
parent
commit
3272885883
  1. 2052
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20211110134400_Initial.Designer.cs
  2. 1122
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20211110134400_Initial.cs
  3. 81
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20220224094624_Added_GlobalResources.cs
  4. 4
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20220225084616_Initial.Designer.cs
  5. 1184
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20220225084616_Initial.cs
  6. 2
      modules/cms-kit/host/Volo.CmsKit.Web.Unified/appsettings.json

2052
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20211110134400_Initial.Designer.cs

File diff suppressed because it is too large

1122
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20211110134400_Initial.cs

File diff suppressed because it is too large

81
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20220224094624_Added_GlobalResources.cs

@ -1,81 +0,0 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Volo.CmsKit.Migrations
{
public partial class Added_GlobalResources : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "TenantName",
table: "AbpAuditLogs",
type: "nvarchar(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AddColumn<string>(
name: "ImpersonatorTenantName",
table: "AbpAuditLogs",
type: "nvarchar(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ImpersonatorUserName",
table: "AbpAuditLogs",
type: "nvarchar(256)",
maxLength: 256,
nullable: true);
migrationBuilder.CreateTable(
name: "CmsGlobalResources",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
Value = table.Column<string>(type: "nvarchar(max)", maxLength: 2147483647, nullable: false),
TenantId = table.Column<Guid>(type: "uniqueidentifier", 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)
},
constraints: table =>
{
table.PrimaryKey("PK_CmsGlobalResources", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "CmsGlobalResources");
migrationBuilder.DropColumn(
name: "ImpersonatorTenantName",
table: "AbpAuditLogs");
migrationBuilder.DropColumn(
name: "ImpersonatorUserName",
table: "AbpAuditLogs");
migrationBuilder.AlterColumn<string>(
name: "TenantName",
table: "AbpAuditLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(64)",
oldMaxLength: 64,
oldNullable: true);
}
}
}

4
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20220224094624_Added_GlobalResources.Designer.cs → modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20220225084616_Initial.Designer.cs

@ -13,8 +13,8 @@ using Volo.CmsKit.EntityFrameworkCore;
namespace Volo.CmsKit.Migrations
{
[DbContext(typeof(UnifiedDbContext))]
[Migration("20220224094624_Added_GlobalResources")]
partial class Added_GlobalResources
[Migration("20220225084616_Initial")]
partial class Initial
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{

1184
modules/cms-kit/host/Volo.CmsKit.Web.Unified/Migrations/20220225084616_Initial.cs

File diff suppressed because it is too large

2
modules/cms-kit/host/Volo.CmsKit.Web.Unified/appsettings.json

@ -1,5 +1,5 @@
{
"ConnectionStrings": {
"Default": "Server=localhost;Database=CmsKit_Unified;Trusted_Connection=True"
"Default": "Server=(localdb)\\\\.\\\\MSSQLLocalDB;Database=CmsKit_Unified;Trusted_Connection=True"
}
}

Loading…
Cancel
Save