Skip to content

Commit

Permalink
Merge pull request #358 from holeng-boxfusion-io/main
Browse files Browse the repository at this point in the history
Updated sha role appointment
  • Loading branch information
Lukeybooi committed Jul 4, 2023
2 parents af6ed53 + 526bb68 commit dfb4883
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shesha-core/src/Shesha.Core/Domain/ShaRoleAppointment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ public class ShaRoleAppointment : FullAuditedEntity<Guid>, IMayHaveTenant
{
public virtual ShaRole Role { get; set; }
public virtual int? TenantId { get; set; }


[EntityReference(true)]
public GenericEntityReference PermissionedEntity1 { get; set; }
[EntityReference(true)]
public GenericEntityReference PermissionedEntity2 { get; set; }
[EntityReference(true)]
public GenericEntityReference PermissionedEntity3 { get; set; }

public virtual DateTime? FromDate { get; set; }
Expand Down
24 changes: 24 additions & 0 deletions shesha-core/src/Shesha.NHibernate/Migrations/M20230704153700.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using FluentMigrator;
using System;

namespace Shesha.Migrations
{
[Migration(20230704153700)]
public class M20230704153700 : Migration
{
public override void Up()
{

Alter.Table("Core_ShaRoleAppointments").AddColumn("PermissionedEntity1DisplayName").AsString(1000).Nullable();

Alter.Table("Core_ShaRoleAppointments").AddColumn("PermissionedEntity2DisplayName").AsString(1000).Nullable();

Alter.Table("Core_ShaRoleAppointments").AddColumn("PermissionedEntity3DisplayName").AsString(1000).Nullable();

}
public override void Down()
{
throw new NotImplementedException();
}
}
}

0 comments on commit dfb4883

Please sign in to comment.