V3 make workflowdefinition have readonly (#4124)

* fix broken build and add readonly to dapper migration

---------

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
This commit is contained in:
herblinernexxbizz 2023-06-12 11:12:18 +02:00 committed by GitHub
parent 04ba54f3a5
commit e5a5705888
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -44,6 +44,7 @@ export class FlowchartComponent {
@Prop() rootActivity: Activity;
@Prop() interactiveMode: boolean = true;
@Prop() silent: boolean = false;
@Prop() isReadonly: boolean;
@Element() el: HTMLElement;
container: HTMLElement;

View file

@ -28,7 +28,9 @@ public class Initial : Migration
.WithColumn("CreatedAt").AsDateTimeOffset().NotNullable()
.WithColumn("Version").AsInt32().NotNullable()
.WithColumn("IsLatest").AsBoolean().NotNullable()
.WithColumn("IsReadonly").AsBoolean().NotNullable()
.WithColumn("IsPublished").AsBoolean().NotNullable();
IfDatabase("Sqlite")
.Create
@ -47,6 +49,7 @@ public class Initial : Migration
.WithColumn("CreatedAt").AsDateTime2().NotNullable()
.WithColumn("Version").AsInt32().NotNullable()
.WithColumn("IsLatest").AsBoolean().NotNullable()
.WithColumn("IsReadonly").AsBoolean().NotNullable()
.WithColumn("IsPublished").AsBoolean().NotNullable();
IfDatabase("SqlServer", "Oracle", "MySql", "Postgres")