Skip to content

Commit 74e0467

Browse files
committed
migration
1 parent c42313c commit 74e0467

9 files changed

+42
-30
lines changed
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/providers/WorkflowCore.Persistence.MySQL/Migrations/20211015215708_scheduled-commands.cs renamed to src/providers/WorkflowCore.Persistence.MySQL/Migrations/20211023161949_scheduled-commands.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
154154
.OldAnnotation("MySql:CharSet", "utf8mb4");
155155

156156
migrationBuilder.CreateTable(
157-
name: "PersistedScheduledCommand",
157+
name: "ScheduledCommand",
158158
columns: table => new
159159
{
160160
PersistenceId = table.Column<long>(type: "bigint", nullable: false)
@@ -167,26 +167,26 @@ protected override void Up(MigrationBuilder migrationBuilder)
167167
},
168168
constraints: table =>
169169
{
170-
table.PrimaryKey("PK_PersistedScheduledCommand", x => x.PersistenceId);
170+
table.PrimaryKey("PK_ScheduledCommand", x => x.PersistenceId);
171171
})
172172
.Annotation("MySql:CharSet", "utf8mb4");
173173

174174
migrationBuilder.CreateIndex(
175-
name: "IX_PersistedScheduledCommand_CommandName_Data",
176-
table: "PersistedScheduledCommand",
175+
name: "IX_ScheduledCommand_CommandName_Data",
176+
table: "ScheduledCommand",
177177
columns: new[] { "CommandName", "Data" },
178178
unique: true);
179179

180180
migrationBuilder.CreateIndex(
181-
name: "IX_PersistedScheduledCommand_ExecuteTime",
182-
table: "PersistedScheduledCommand",
181+
name: "IX_ScheduledCommand_ExecuteTime",
182+
table: "ScheduledCommand",
183183
column: "ExecuteTime");
184184
}
185185

186186
protected override void Down(MigrationBuilder migrationBuilder)
187187
{
188188
migrationBuilder.DropTable(
189-
name: "PersistedScheduledCommand");
189+
name: "ScheduledCommand");
190190

191191
migrationBuilder.AlterColumn<string>(
192192
name: "InstanceId",

src/providers/WorkflowCore.Persistence.MySQL/Migrations/MysqlPersistenceProviderModelSnapshot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
207207
b.HasIndex("CommandName", "Data")
208208
.IsUnique();
209209

210-
b.ToTable("PersistedScheduledCommand");
210+
b.ToTable("ScheduledCommand");
211211
});
212212

213213
modelBuilder.Entity("WorkflowCore.Persistence.EntityFramework.Models.PersistedSubscription", b =>
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/providers/WorkflowCore.Persistence.PostgreSQL/Migrations/20211015204734_scheduled-commands.cs renamed to src/providers/WorkflowCore.Persistence.PostgreSQL/Migrations/20211023161649_scheduled-commands.cs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ public partial class scheduledcommands : Migration
88
protected override void Up(MigrationBuilder migrationBuilder)
99
{
1010
migrationBuilder.CreateTable(
11-
name: "PersistedScheduledCommand",
11+
name: "ScheduledCommand",
12+
schema: "wfc",
1213
columns: table => new
1314
{
1415
PersistenceId = table.Column<long>(type: "bigint", nullable: false)
@@ -19,25 +20,28 @@ protected override void Up(MigrationBuilder migrationBuilder)
1920
},
2021
constraints: table =>
2122
{
22-
table.PrimaryKey("PK_PersistedScheduledCommand", x => x.PersistenceId);
23+
table.PrimaryKey("PK_ScheduledCommand", x => x.PersistenceId);
2324
});
2425

2526
migrationBuilder.CreateIndex(
26-
name: "IX_PersistedScheduledCommand_CommandName_Data",
27-
table: "PersistedScheduledCommand",
27+
name: "IX_ScheduledCommand_CommandName_Data",
28+
schema: "wfc",
29+
table: "ScheduledCommand",
2830
columns: new[] { "CommandName", "Data" },
2931
unique: true);
3032

3133
migrationBuilder.CreateIndex(
32-
name: "IX_PersistedScheduledCommand_ExecuteTime",
33-
table: "PersistedScheduledCommand",
34+
name: "IX_ScheduledCommand_ExecuteTime",
35+
schema: "wfc",
36+
table: "ScheduledCommand",
3437
column: "ExecuteTime");
3538
}
3639

3740
protected override void Down(MigrationBuilder migrationBuilder)
3841
{
3942
migrationBuilder.DropTable(
40-
name: "PersistedScheduledCommand");
43+
name: "ScheduledCommand",
44+
schema: "wfc");
4145
}
4246
}
4347
}

src/providers/WorkflowCore.Persistence.PostgreSQL/Migrations/PostgresPersistenceProviderModelSnapshot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
214214
b.HasIndex("CommandName", "Data")
215215
.IsUnique();
216216

217-
b.ToTable("PersistedScheduledCommand");
217+
b.ToTable("ScheduledCommand", "wfc");
218218
});
219219

220220
modelBuilder.Entity("WorkflowCore.Persistence.EntityFramework.Models.PersistedSubscription", b =>
Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/providers/WorkflowCore.Persistence.SqlServer/Migrations/20211015215114_scheduled-commands.cs renamed to src/providers/WorkflowCore.Persistence.SqlServer/Migrations/20211023161544_scheduled-commands.cs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ public partial class scheduledcommands : Migration
77
protected override void Up(MigrationBuilder migrationBuilder)
88
{
99
migrationBuilder.CreateTable(
10-
name: "PersistedScheduledCommand",
10+
name: "ScheduledCommand",
11+
schema: "wfc",
1112
columns: table => new
1213
{
1314
PersistenceId = table.Column<long>(type: "bigint", nullable: false)
@@ -18,26 +19,29 @@ protected override void Up(MigrationBuilder migrationBuilder)
1819
},
1920
constraints: table =>
2021
{
21-
table.PrimaryKey("PK_PersistedScheduledCommand", x => x.PersistenceId);
22+
table.PrimaryKey("PK_ScheduledCommand", x => x.PersistenceId);
2223
});
2324

2425
migrationBuilder.CreateIndex(
25-
name: "IX_PersistedScheduledCommand_CommandName_Data",
26-
table: "PersistedScheduledCommand",
26+
name: "IX_ScheduledCommand_CommandName_Data",
27+
schema: "wfc",
28+
table: "ScheduledCommand",
2729
columns: new[] { "CommandName", "Data" },
2830
unique: true,
2931
filter: "[CommandName] IS NOT NULL AND [Data] IS NOT NULL");
3032

3133
migrationBuilder.CreateIndex(
32-
name: "IX_PersistedScheduledCommand_ExecuteTime",
33-
table: "PersistedScheduledCommand",
34+
name: "IX_ScheduledCommand_ExecuteTime",
35+
schema: "wfc",
36+
table: "ScheduledCommand",
3437
column: "ExecuteTime");
3538
}
3639

3740
protected override void Down(MigrationBuilder migrationBuilder)
3841
{
3942
migrationBuilder.DropTable(
40-
name: "PersistedScheduledCommand");
43+
name: "ScheduledCommand",
44+
schema: "wfc");
4145
}
4246
}
4347
}

src/providers/WorkflowCore.Persistence.SqlServer/Migrations/SqlServerPersistenceProviderModelSnapshot.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
202202
b.Property<long>("PersistenceId")
203203
.ValueGeneratedOnAdd()
204204
.HasColumnType("bigint")
205+
.HasAnnotation("SqlServer:IdentityIncrement", 1)
206+
.HasAnnotation("SqlServer:IdentitySeed", 1)
205207
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
206208

207209
b.Property<string>("CommandName")
@@ -223,7 +225,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
223225
.IsUnique()
224226
.HasFilter("[CommandName] IS NOT NULL AND [Data] IS NOT NULL");
225227

226-
b.ToTable("PersistedScheduledCommand");
228+
b.ToTable("ScheduledCommand", "wfc");
227229
});
228230

229231
modelBuilder.Entity("WorkflowCore.Persistence.EntityFramework.Models.PersistedSubscription", b =>

0 commit comments

Comments
 (0)