Thank you
Yes, actually TSE want it from us. They dont want to lost role information from user. For a certain period of time they want to disable
hello, is there any improvement?
Hello, did you find a solution. My all project throw error with this lines
did you get my mail
I sent
I detected the source of the problem
in AppPreBootstrap.ts you override default date behaviour. When i comment that its work... But will cause other errors. Can you fix it?
Date.prototype.toISOString = function () {
let value = DateTime.fromJSDate(this).setLocale('en').setZone(abp.timing.timeZoneInfo.iana.timeZoneId).toString();
return value;
};
Date.prototype.toString = function () {
let value = DateTime.fromJSDate(this).setLocale('en').setZone(abp.timing.timeZoneInfo.iana.timeZoneId).toString();
return value;
};
My migration result is :
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_AbpOrganizationUnits_AbpOrganizationUnits_ParentId",
table: "AbpOrganizationUnits");
//...some DropForeignKey operation on relational tables
migrationBuilder.DropForeignKey(
name: "FK_OrganizationModeOfStudies_AbpOrganizationUnits_OrganizationId_TenantId",
schema: "organization",
table: "OrganizationModeOfStudies");
migrationBuilder.DropUniqueConstraint(
name: "AK_AbpOrganizationUnits_Id_TenantId",
table: "AbpOrganizationUnits");
migrationBuilder.DropIndex(
name: "IX_AbpOrganizationUnits_ParentId",
table: "AbpOrganizationUnits");
migrationBuilder.DropIndex(
name: "IX_AbpOrganizationUnits_TenantId_Code",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "Code",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "CreationTime",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "CreatorUserId",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "DeleterUserId",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "DeletionTime",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "Discriminator",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "DisplayName",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "IsDeleted",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "LastModificationTime",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "LastModifierUserId",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "ParentId",
table: "AbpOrganizationUnits");
migrationBuilder.DropColumn(
name: "TenantId",
table: "AbpOrganizationUnits");
migrationBuilder.RenameTable(
name: "AbpOrganizationUnits",
newName: "AbpOrganizationUnits",
newSchema: "organization");
migrationBuilder.AlterColumn<long>(
name: "Id",
schema: "organization",
table: "AbpOrganizationUnits",
type: "bigint",
nullable: false,
oldClrType: typeof(long),
oldType: "bigint")
.OldAnnotation("SqlServer:Identity", "1, 1");
migrationBuilder.CreateTable(
name: "Organizations",
schema: "organization",
columns: table => new
{
Id = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
TenantId = table.Column<int>(type: "int", nullable: false),
ParentId = table.Column<long>(type: "bigint", nullable: true),
Code = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: false),
DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatorUserId = table.Column<long>(type: "bigint", nullable: true),
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
LastModifierUserId = table.Column<long>(type: "bigint", nullable: true),
IsDeleted = table.Column<bool>(type: "bit", nullable: false),
DeleterUserId = table.Column<long>(type: "bigint", nullable: true),
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Organizations", x => x.Id);
table.UniqueConstraint("AK_Organizations_Id_TenantId", x => new { x.Id, x.TenantId });
table.ForeignKey(
name: "FK_Organizations_Organizations_ParentId",
column: x => x.ParentId,
principalSchema: "organization",
principalTable: "Organizations",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
});
migrationBuilder.CreateIndex(
name: "IX_Organizations_ParentId",
schema: "organization",
table: "Organizations",
column: "ParentId");
migrationBuilder.CreateIndex(
name: "IX_Organizations_TenantId_Code",
schema: "organization",
table: "Organizations",
columns: new[] { "TenantId", "Code" });
migrationBuilder.AddForeignKey(
name: "FK_AbpOrganizationUnits_Organizations_Id",
schema: "organization",
table: "AbpOrganizationUnits",
column: "Id",
principalSchema: "organization",
principalTable: "Organizations",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
//...
}
thanks maliming by the way footer bar not fix bottom why it could be?