Skip to content

Commit c42313c

Browse files
committed
table name
1 parent b34690c commit c42313c

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

Diff for: src/providers/WorkflowCore.Persistence.EntityFramework/Services/WorkflowDbContext.cs

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public abstract class WorkflowDbContext : DbContext
1414
protected abstract void ConfigureExetensionAttributeStorage(EntityTypeBuilder<PersistedExtensionAttribute> builder);
1515
protected abstract void ConfigureSubscriptionStorage(EntityTypeBuilder<PersistedSubscription> builder);
1616
protected abstract void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent> builder);
17+
protected abstract void ConfigureScheduledCommandStorage(EntityTypeBuilder<PersistedScheduledCommand> builder);
1718

1819
protected override void OnModelCreating(ModelBuilder modelBuilder)
1920
{
@@ -48,6 +49,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
4849
ConfigureExetensionAttributeStorage(extensionAttributes);
4950
ConfigureSubscriptionStorage(subscriptions);
5051
ConfigureEventStorage(events);
52+
ConfigureScheduledCommandStorage(commands);
5153
}
5254

5355
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)

Diff for: src/providers/WorkflowCore.Persistence.MySQL/MysqlContext.cs

+6
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,11 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
6363
builder.ToTable("Event");
6464
builder.Property(x => x.PersistenceId).ValueGeneratedOnAdd();
6565
}
66+
67+
protected override void ConfigureScheduledCommandStorage(EntityTypeBuilder<PersistedScheduledCommand> builder)
68+
{
69+
builder.ToTable("ScheduledCommand");
70+
builder.Property(x => x.PersistenceId).ValueGeneratedOnAdd();
71+
}
6672
}
6773
}

Diff for: src/providers/WorkflowCore.Persistence.PostgreSQL/PostgresContext.cs

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
6060
builder.ToTable("Event", _schemaName);
6161
builder.Property(x => x.PersistenceId).ValueGeneratedOnAdd();
6262
}
63+
64+
protected override void ConfigureScheduledCommandStorage(EntityTypeBuilder<PersistedScheduledCommand> builder)
65+
{
66+
builder.ToTable("ScheduledCommand", _schemaName);
67+
builder.Property(x => x.PersistenceId).ValueGeneratedOnAdd();
68+
}
6369
}
6470
}
6571

Diff for: src/providers/WorkflowCore.Persistence.SqlServer/SqlServerContext.cs

+6
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,11 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
5858
builder.ToTable("Event", "wfc");
5959
builder.Property(x => x.PersistenceId).UseIdentityColumn();
6060
}
61+
62+
protected override void ConfigureScheduledCommandStorage(EntityTypeBuilder<PersistedScheduledCommand> builder)
63+
{
64+
builder.ToTable("ScheduledCommand", "wfc");
65+
builder.Property(x => x.PersistenceId).UseIdentityColumn();
66+
}
6167
}
6268
}

Diff for: src/providers/WorkflowCore.Persistence.Sqlite/SqliteContext.cs

+5
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,10 @@ protected override void ConfigureEventStorage(EntityTypeBuilder<PersistedEvent>
5252
{
5353
builder.ToTable("Event");
5454
}
55+
56+
protected override void ConfigureScheduledCommandStorage(EntityTypeBuilder<PersistedScheduledCommand> builder)
57+
{
58+
builder.ToTable("ScheduledCommand");
59+
}
5560
}
5661
}

0 commit comments

Comments
 (0)