18 changed files with 394 additions and 15259 deletions
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,161 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Lion.AbpPro.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class UpdateToAbpVnext7 : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "AbpFeatureGroups", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|||
Name = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
DisplayName = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ExtraProperties = table.Column<string>(type: "longtext", nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4") |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpFeatureGroups", x => x.Id); |
|||
}) |
|||
.Annotation("MySql:CharSet", "utf8mb4"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "AbpFeatures", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|||
GroupName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
Name = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ParentName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
DisplayName = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
Description = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
DefaultValue = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
IsVisibleToClients = table.Column<bool>(type: "tinyint(1)", nullable: false), |
|||
IsAvailableToHost = table.Column<bool>(type: "tinyint(1)", nullable: false), |
|||
AllowedProviders = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ValueType = table.Column<string>(type: "varchar(2048)", maxLength: 2048, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ExtraProperties = table.Column<string>(type: "longtext", nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4") |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpFeatures", x => x.Id); |
|||
}) |
|||
.Annotation("MySql:CharSet", "utf8mb4"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "AbpPermissionGroups", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|||
Name = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
DisplayName = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ExtraProperties = table.Column<string>(type: "longtext", nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4") |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpPermissionGroups", x => x.Id); |
|||
}) |
|||
.Annotation("MySql:CharSet", "utf8mb4"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "AbpPermissions", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|||
GroupName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
Name = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ParentName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
DisplayName = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
IsEnabled = table.Column<bool>(type: "tinyint(1)", nullable: false), |
|||
MultiTenancySide = table.Column<byte>(type: "tinyint unsigned", nullable: false), |
|||
Providers = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
StateCheckers = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ExtraProperties = table.Column<string>(type: "longtext", nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4") |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpPermissions", x => x.Id); |
|||
}) |
|||
.Annotation("MySql:CharSet", "utf8mb4"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpFeatureGroups_Name", |
|||
table: "AbpFeatureGroups", |
|||
column: "Name", |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpFeatures_GroupName", |
|||
table: "AbpFeatures", |
|||
column: "GroupName"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpFeatures_Name", |
|||
table: "AbpFeatures", |
|||
column: "Name", |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpPermissionGroups_Name", |
|||
table: "AbpPermissionGroups", |
|||
column: "Name", |
|||
unique: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpPermissions_GroupName", |
|||
table: "AbpPermissions", |
|||
column: "GroupName"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpPermissions_Name", |
|||
table: "AbpPermissions", |
|||
column: "Name", |
|||
unique: true); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "AbpFeatureGroups"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "AbpFeatures"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "AbpPermissionGroups"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "AbpPermissions"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,64 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Lion.AbpPro.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class UpdateDataDictionaryManagementAndNotificationManagement : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_NotificationSubscription_Notification_NotificationId", |
|||
table: "NotificationSubscription"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "NotificationId", |
|||
table: "NotificationSubscription", |
|||
type: "char(36)", |
|||
nullable: false, |
|||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|||
collation: "ascii_general_ci", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "char(36)", |
|||
oldNullable: true) |
|||
.OldAnnotation("Relational:Collation", "ascii_general_ci"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_NotificationSubscription_Notification_NotificationId", |
|||
table: "NotificationSubscription", |
|||
column: "NotificationId", |
|||
principalTable: "Notification", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_NotificationSubscription_Notification_NotificationId", |
|||
table: "NotificationSubscription"); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "NotificationId", |
|||
table: "NotificationSubscription", |
|||
type: "char(36)", |
|||
nullable: true, |
|||
collation: "ascii_general_ci", |
|||
oldClrType: typeof(Guid), |
|||
oldType: "char(36)") |
|||
.OldAnnotation("Relational:Collation", "ascii_general_ci"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_NotificationSubscription_Notification_NotificationId", |
|||
table: "NotificationSubscription", |
|||
column: "NotificationId", |
|||
principalTable: "Notification", |
|||
principalColumn: "Id"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,94 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Lion.AbpPro.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class AddLanguage : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "AbpLanguages", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|||
CultureName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "语言名称") |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
UiCultureName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "Ui语言名称") |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
DisplayName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "显示名称") |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
FlagIcon = table.Column<string>(type: "longtext", nullable: false, comment: "图标") |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
IsEnabled = table.Column<bool>(type: "tinyint(1)", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "longtext", nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpLanguages", x => x.Id); |
|||
}) |
|||
.Annotation("MySql:CharSet", "utf8mb4"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "AbpLanguageTexts", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|||
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|||
ResourceName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "资源名称") |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
CultureName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "语言名称") |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
Name = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false, comment: "名称") |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
Value = table.Column<string>(type: "varchar(256)", maxLength: 256, nullable: false, comment: "值") |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ExtraProperties = table.Column<string>(type: "longtext", nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: true) |
|||
.Annotation("MySql:CharSet", "utf8mb4"), |
|||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpLanguageTexts", x => x.Id); |
|||
}) |
|||
.Annotation("MySql:CharSet", "utf8mb4"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpLanguageTexts_TenantId_ResourceName_CultureName", |
|||
table: "AbpLanguageTexts", |
|||
columns: new[] { "TenantId", "ResourceName", "CultureName" }); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "AbpLanguages"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "AbpLanguageTexts"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,29 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Lion.AbpPro.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class AddLanguageDefault : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsDefault", |
|||
table: "AbpLanguages", |
|||
type: "tinyint(1)", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "IsDefault", |
|||
table: "AbpLanguages"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,200 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Lion.AbpPro.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class UpdateTablePrefix : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_DataDictionaryDetail_DataDictionary_DataDictionaryId", |
|||
table: "DataDictionaryDetail"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_NotificationSubscription_Notification_NotificationId", |
|||
table: "NotificationSubscription"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_NotificationSubscription", |
|||
table: "NotificationSubscription"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_Notification", |
|||
table: "Notification"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_DataDictionaryDetail", |
|||
table: "DataDictionaryDetail"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_DataDictionary", |
|||
table: "DataDictionary"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "NotificationSubscription", |
|||
newName: "AbpNotificationSubscriptions"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "Notification", |
|||
newName: "AbpNotifications"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "DataDictionaryDetail", |
|||
newName: "AbpDataDictionaryDetails"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "DataDictionary", |
|||
newName: "AbpDataDictionaries"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_NotificationSubscription_NotificationId", |
|||
table: "AbpNotificationSubscriptions", |
|||
newName: "IX_AbpNotificationSubscriptions_NotificationId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_DataDictionaryDetail_DataDictionaryId", |
|||
table: "AbpDataDictionaryDetails", |
|||
newName: "IX_AbpDataDictionaryDetails_DataDictionaryId"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_AbpNotificationSubscriptions", |
|||
table: "AbpNotificationSubscriptions", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_AbpNotifications", |
|||
table: "AbpNotifications", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_AbpDataDictionaryDetails", |
|||
table: "AbpDataDictionaryDetails", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_AbpDataDictionaries", |
|||
table: "AbpDataDictionaries", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_AbpLanguages_CultureName", |
|||
table: "AbpLanguages", |
|||
column: "CultureName", |
|||
unique: true); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_AbpDataDictionaryDetails_AbpDataDictionaries_DataDictionaryId", |
|||
table: "AbpDataDictionaryDetails", |
|||
column: "DataDictionaryId", |
|||
principalTable: "AbpDataDictionaries", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_AbpNotificationSubscriptions_AbpNotifications_NotificationId", |
|||
table: "AbpNotificationSubscriptions", |
|||
column: "NotificationId", |
|||
principalTable: "AbpNotifications", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_AbpDataDictionaryDetails_AbpDataDictionaries_DataDictionaryId", |
|||
table: "AbpDataDictionaryDetails"); |
|||
|
|||
migrationBuilder.DropForeignKey( |
|||
name: "FK_AbpNotificationSubscriptions_AbpNotifications_NotificationId", |
|||
table: "AbpNotificationSubscriptions"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_AbpLanguages_CultureName", |
|||
table: "AbpLanguages"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_AbpNotificationSubscriptions", |
|||
table: "AbpNotificationSubscriptions"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_AbpNotifications", |
|||
table: "AbpNotifications"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_AbpDataDictionaryDetails", |
|||
table: "AbpDataDictionaryDetails"); |
|||
|
|||
migrationBuilder.DropPrimaryKey( |
|||
name: "PK_AbpDataDictionaries", |
|||
table: "AbpDataDictionaries"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "AbpNotificationSubscriptions", |
|||
newName: "NotificationSubscription"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "AbpNotifications", |
|||
newName: "Notification"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "AbpDataDictionaryDetails", |
|||
newName: "DataDictionaryDetail"); |
|||
|
|||
migrationBuilder.RenameTable( |
|||
name: "AbpDataDictionaries", |
|||
newName: "DataDictionary"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_AbpNotificationSubscriptions_NotificationId", |
|||
table: "NotificationSubscription", |
|||
newName: "IX_NotificationSubscription_NotificationId"); |
|||
|
|||
migrationBuilder.RenameIndex( |
|||
name: "IX_AbpDataDictionaryDetails_DataDictionaryId", |
|||
table: "DataDictionaryDetail", |
|||
newName: "IX_DataDictionaryDetail_DataDictionaryId"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_NotificationSubscription", |
|||
table: "NotificationSubscription", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_Notification", |
|||
table: "Notification", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_DataDictionaryDetail", |
|||
table: "DataDictionaryDetail", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddPrimaryKey( |
|||
name: "PK_DataDictionary", |
|||
table: "DataDictionary", |
|||
column: "Id"); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_DataDictionaryDetail_DataDictionary_DataDictionaryId", |
|||
table: "DataDictionaryDetail", |
|||
column: "DataDictionaryId", |
|||
principalTable: "DataDictionary", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
|
|||
migrationBuilder.AddForeignKey( |
|||
name: "FK_NotificationSubscription_Notification_NotificationId", |
|||
table: "NotificationSubscription", |
|||
column: "NotificationId", |
|||
principalTable: "Notification", |
|||
principalColumn: "Id", |
|||
onDelete: ReferentialAction.Cascade); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,62 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Lion.AbpPro.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class UpdateToAbp711 : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<int>( |
|||
name: "EntityVersion", |
|||
table: "AbpUsers", |
|||
type: "int", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "EntityVersion", |
|||
table: "AbpTenants", |
|||
type: "int", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "EntityVersion", |
|||
table: "AbpRoles", |
|||
type: "int", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
|
|||
migrationBuilder.AddColumn<int>( |
|||
name: "EntityVersion", |
|||
table: "AbpOrganizationUnits", |
|||
type: "int", |
|||
nullable: false, |
|||
defaultValue: 0); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "EntityVersion", |
|||
table: "AbpUsers"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "EntityVersion", |
|||
table: "AbpTenants"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "EntityVersion", |
|||
table: "AbpRoles"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "EntityVersion", |
|||
table: "AbpOrganizationUnits"); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -1,60 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Lion.AbpPro.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class UpdateToAbp722 : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<DateTimeOffset>( |
|||
name: "LastPasswordChangeTime", |
|||
table: "AbpUsers", |
|||
type: "datetime(6)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "ShouldChangePasswordOnNextLogin", |
|||
table: "AbpUsers", |
|||
type: "tinyint(1)", |
|||
nullable: false, |
|||
defaultValue: false); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "AbpUserDelegations", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|||
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"), |
|||
SourceUserId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|||
TargetUserId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"), |
|||
StartTime = table.Column<DateTime>(type: "datetime(6)", nullable: false), |
|||
EndTime = table.Column<DateTime>(type: "datetime(6)", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_AbpUserDelegations", x => x.Id); |
|||
}) |
|||
.Annotation("MySql:CharSet", "utf8mb4"); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "AbpUserDelegations"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "LastPasswordChangeTime", |
|||
table: "AbpUsers"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ShouldChangePasswordOnNextLogin", |
|||
table: "AbpUsers"); |
|||
} |
|||
} |
|||
} |
|||
@ -1,52 +0,0 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Lion.AbpPro.Migrations |
|||
{ |
|||
/// <inheritdoc />
|
|||
public partial class UpdateLanguageManagementFlagIconIsNotRequired : Migration |
|||
{ |
|||
/// <inheritdoc />
|
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "FlagIcon", |
|||
table: "AbpLanguages", |
|||
type: "varchar(128)", |
|||
maxLength: 128, |
|||
nullable: true, |
|||
comment: "图标", |
|||
oldClrType: typeof(string), |
|||
oldType: "longtext", |
|||
oldComment: "图标") |
|||
.Annotation("MySql:CharSet", "utf8mb4") |
|||
.OldAnnotation("MySql:CharSet", "utf8mb4"); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.UpdateData( |
|||
table: "AbpLanguages", |
|||
keyColumn: "FlagIcon", |
|||
keyValue: null, |
|||
column: "FlagIcon", |
|||
value: ""); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "FlagIcon", |
|||
table: "AbpLanguages", |
|||
type: "longtext", |
|||
nullable: false, |
|||
comment: "图标", |
|||
oldClrType: typeof(string), |
|||
oldType: "varchar(128)", |
|||
oldMaxLength: 128, |
|||
oldNullable: true, |
|||
oldComment: "图标") |
|||
.Annotation("MySql:CharSet", "utf8mb4") |
|||
.OldAnnotation("MySql:CharSet", "utf8mb4"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue