Skip to content

Commit

Permalink
Merge pull request #363 from shesha-io/deviceForceUpdate-feature
Browse files Browse the repository at this point in the history
Added a Descriminator value on device force update
  • Loading branch information
Mvelo829 committed Jul 6, 2023
2 parents a9ed494 + 3b70b74 commit a6d366a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace Shesha.Domain
{
[Discriminator]
[Entity(GenerateApplicationService = GenerateApplicationServiceState.DisableGenerateApplicationService)]
public class DeviceForceUpdate : FullAuditedEntity<Guid>
{
Expand Down
20 changes: 20 additions & 0 deletions shesha-core/src/Shesha.NHibernate/Migrations/M20230706102000.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using FluentMigrator;
using System;

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

Alter.Table("Frwk_DeviceForceUpdates").AddColumn("Frwk_Discriminator").AsString().Nullable();

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

0 comments on commit a6d366a

Please sign in to comment.