| | | 1 | | using Elsa.Persistence.EFCore; |
| | | 2 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | | 3 | | |
| | | 4 | | #nullable disable |
| | | 5 | | |
| | | 6 | | namespace Elsa.Persistence.EFCore.PostgreSql.Migrations.Runtime |
| | | 7 | | { |
| | | 8 | | /// <inheritdoc /> |
| | | 9 | | public partial class Initial : Migration |
| | | 10 | | { |
| | | 11 | | private readonly IElsaDbContextSchema _schema; |
| | 2 | 12 | | public Initial(IElsaDbContextSchema schema) |
| | | 13 | | { |
| | 2 | 14 | | _schema = schema ?? throw new ArgumentNullException(nameof(schema)); |
| | 2 | 15 | | } |
| | | 16 | | /// <inheritdoc /> |
| | | 17 | | protected override void Up(MigrationBuilder migrationBuilder) |
| | | 18 | | { |
| | 2 | 19 | | migrationBuilder.EnsureSchema( |
| | 2 | 20 | | name: _schema.Schema); |
| | | 21 | | |
| | 2 | 22 | | migrationBuilder.CreateTable( |
| | 2 | 23 | | name: "ActivityExecutionRecords", |
| | 2 | 24 | | schema: _schema.Schema, |
| | 2 | 25 | | columns: table => new |
| | 2 | 26 | | { |
| | 2 | 27 | | Id = table.Column<string>(type: "text", nullable: false), |
| | 2 | 28 | | WorkflowInstanceId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 29 | | ActivityId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 30 | | ActivityNodeId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 31 | | ActivityType = table.Column<string>(type: "text", nullable: false), |
| | 2 | 32 | | ActivityTypeVersion = table.Column<int>(type: "integer", nullable: false), |
| | 2 | 33 | | ActivityName = table.Column<string>(type: "text", nullable: true), |
| | 2 | 34 | | StartedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false), |
| | 2 | 35 | | HasBookmarks = table.Column<bool>(type: "boolean", nullable: false), |
| | 2 | 36 | | Status = table.Column<string>(type: "text", nullable: false), |
| | 2 | 37 | | CompletedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true), |
| | 2 | 38 | | SerializedActivityState = table.Column<string>(type: "text", nullable: true), |
| | 2 | 39 | | SerializedException = table.Column<string>(type: "text", nullable: true), |
| | 2 | 40 | | SerializedOutputs = table.Column<string>(type: "text", nullable: true), |
| | 2 | 41 | | SerializedPayload = table.Column<string>(type: "text", nullable: true) |
| | 2 | 42 | | }, |
| | 2 | 43 | | constraints: table => |
| | 2 | 44 | | { |
| | 2 | 45 | | table.PrimaryKey("PK_ActivityExecutionRecords", x => x.Id); |
| | 4 | 46 | | }); |
| | | 47 | | |
| | 2 | 48 | | migrationBuilder.CreateTable( |
| | 2 | 49 | | name: "Bookmarks", |
| | 2 | 50 | | schema: _schema.Schema, |
| | 2 | 51 | | columns: table => new |
| | 2 | 52 | | { |
| | 2 | 53 | | BookmarkId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 54 | | ActivityTypeName = table.Column<string>(type: "text", nullable: false), |
| | 2 | 55 | | Hash = table.Column<string>(type: "text", nullable: false), |
| | 2 | 56 | | WorkflowInstanceId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 57 | | ActivityInstanceId = table.Column<string>(type: "text", nullable: true), |
| | 2 | 58 | | CorrelationId = table.Column<string>(type: "text", nullable: true), |
| | 2 | 59 | | CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false), |
| | 2 | 60 | | SerializedMetadata = table.Column<string>(type: "text", nullable: true), |
| | 2 | 61 | | SerializedPayload = table.Column<string>(type: "text", nullable: true) |
| | 2 | 62 | | }, |
| | 2 | 63 | | constraints: table => |
| | 2 | 64 | | { |
| | 2 | 65 | | table.PrimaryKey("PK_Bookmarks", x => x.BookmarkId); |
| | 4 | 66 | | }); |
| | | 67 | | |
| | 2 | 68 | | migrationBuilder.CreateTable( |
| | 2 | 69 | | name: "Triggers", |
| | 2 | 70 | | schema: _schema.Schema, |
| | 2 | 71 | | columns: table => new |
| | 2 | 72 | | { |
| | 2 | 73 | | Id = table.Column<string>(type: "text", nullable: false), |
| | 2 | 74 | | WorkflowDefinitionId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 75 | | WorkflowDefinitionVersionId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 76 | | Name = table.Column<string>(type: "text", nullable: false), |
| | 2 | 77 | | ActivityId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 78 | | Hash = table.Column<string>(type: "text", nullable: true), |
| | 2 | 79 | | SerializedPayload = table.Column<string>(type: "text", nullable: true) |
| | 2 | 80 | | }, |
| | 2 | 81 | | constraints: table => |
| | 2 | 82 | | { |
| | 2 | 83 | | table.PrimaryKey("PK_Triggers", x => x.Id); |
| | 4 | 84 | | }); |
| | | 85 | | |
| | 2 | 86 | | migrationBuilder.CreateTable( |
| | 2 | 87 | | name: "WorkflowExecutionLogRecords", |
| | 2 | 88 | | schema: _schema.Schema, |
| | 2 | 89 | | columns: table => new |
| | 2 | 90 | | { |
| | 2 | 91 | | Id = table.Column<string>(type: "text", nullable: false), |
| | 2 | 92 | | WorkflowDefinitionId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 93 | | WorkflowDefinitionVersionId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 94 | | WorkflowInstanceId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 95 | | WorkflowVersion = table.Column<int>(type: "integer", nullable: false), |
| | 2 | 96 | | ActivityInstanceId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 97 | | ParentActivityInstanceId = table.Column<string>(type: "text", nullable: true), |
| | 2 | 98 | | ActivityId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 99 | | ActivityType = table.Column<string>(type: "text", nullable: false), |
| | 2 | 100 | | ActivityTypeVersion = table.Column<int>(type: "integer", nullable: false), |
| | 2 | 101 | | ActivityName = table.Column<string>(type: "text", nullable: true), |
| | 2 | 102 | | ActivityNodeId = table.Column<string>(type: "text", nullable: false), |
| | 2 | 103 | | Timestamp = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false), |
| | 2 | 104 | | Sequence = table.Column<long>(type: "bigint", nullable: false), |
| | 2 | 105 | | EventName = table.Column<string>(type: "text", nullable: true), |
| | 2 | 106 | | Message = table.Column<string>(type: "text", nullable: true), |
| | 2 | 107 | | Source = table.Column<string>(type: "text", nullable: true), |
| | 2 | 108 | | SerializedActivityState = table.Column<string>(type: "text", nullable: true), |
| | 2 | 109 | | SerializedPayload = table.Column<string>(type: "text", nullable: true) |
| | 2 | 110 | | }, |
| | 2 | 111 | | constraints: table => |
| | 2 | 112 | | { |
| | 2 | 113 | | table.PrimaryKey("PK_WorkflowExecutionLogRecords", x => x.Id); |
| | 4 | 114 | | }); |
| | | 115 | | |
| | 2 | 116 | | migrationBuilder.CreateTable( |
| | 2 | 117 | | name: "WorkflowInboxMessages", |
| | 2 | 118 | | schema: _schema.Schema, |
| | 2 | 119 | | columns: table => new |
| | 2 | 120 | | { |
| | 2 | 121 | | Id = table.Column<string>(type: "text", nullable: false), |
| | 2 | 122 | | ActivityTypeName = table.Column<string>(type: "text", nullable: false), |
| | 2 | 123 | | Hash = table.Column<string>(type: "text", nullable: false), |
| | 2 | 124 | | WorkflowInstanceId = table.Column<string>(type: "text", nullable: true), |
| | 2 | 125 | | CorrelationId = table.Column<string>(type: "text", nullable: true), |
| | 2 | 126 | | ActivityInstanceId = table.Column<string>(type: "text", nullable: true), |
| | 2 | 127 | | CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false), |
| | 2 | 128 | | ExpiresAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false), |
| | 2 | 129 | | SerializedBookmarkPayload = table.Column<string>(type: "text", nullable: true), |
| | 2 | 130 | | SerializedInput = table.Column<string>(type: "text", nullable: true) |
| | 2 | 131 | | }, |
| | 2 | 132 | | constraints: table => |
| | 2 | 133 | | { |
| | 2 | 134 | | table.PrimaryKey("PK_WorkflowInboxMessages", x => x.Id); |
| | 4 | 135 | | }); |
| | | 136 | | |
| | 2 | 137 | | migrationBuilder.CreateIndex( |
| | 2 | 138 | | name: "IX_ActivityExecutionRecord_ActivityId", |
| | 2 | 139 | | schema: _schema.Schema, |
| | 2 | 140 | | table: "ActivityExecutionRecords", |
| | 2 | 141 | | column: "ActivityId"); |
| | | 142 | | |
| | 2 | 143 | | migrationBuilder.CreateIndex( |
| | 2 | 144 | | name: "IX_ActivityExecutionRecord_ActivityName", |
| | 2 | 145 | | schema: _schema.Schema, |
| | 2 | 146 | | table: "ActivityExecutionRecords", |
| | 2 | 147 | | column: "ActivityName"); |
| | | 148 | | |
| | 2 | 149 | | migrationBuilder.CreateIndex( |
| | 2 | 150 | | name: "IX_ActivityExecutionRecord_ActivityNodeId", |
| | 2 | 151 | | schema: _schema.Schema, |
| | 2 | 152 | | table: "ActivityExecutionRecords", |
| | 2 | 153 | | column: "ActivityNodeId"); |
| | | 154 | | |
| | 2 | 155 | | migrationBuilder.CreateIndex( |
| | 2 | 156 | | name: "IX_ActivityExecutionRecord_ActivityType", |
| | 2 | 157 | | schema: _schema.Schema, |
| | 2 | 158 | | table: "ActivityExecutionRecords", |
| | 2 | 159 | | column: "ActivityType"); |
| | | 160 | | |
| | 2 | 161 | | migrationBuilder.CreateIndex( |
| | 2 | 162 | | name: "IX_ActivityExecutionRecord_ActivityType_ActivityTypeVersion", |
| | 2 | 163 | | schema: _schema.Schema, |
| | 2 | 164 | | table: "ActivityExecutionRecords", |
| | 2 | 165 | | columns: new[] { "ActivityType", "ActivityTypeVersion" }); |
| | | 166 | | |
| | 2 | 167 | | migrationBuilder.CreateIndex( |
| | 2 | 168 | | name: "IX_ActivityExecutionRecord_ActivityTypeVersion", |
| | 2 | 169 | | schema: _schema.Schema, |
| | 2 | 170 | | table: "ActivityExecutionRecords", |
| | 2 | 171 | | column: "ActivityTypeVersion"); |
| | | 172 | | |
| | 2 | 173 | | migrationBuilder.CreateIndex( |
| | 2 | 174 | | name: "IX_ActivityExecutionRecord_CompletedAt", |
| | 2 | 175 | | schema: _schema.Schema, |
| | 2 | 176 | | table: "ActivityExecutionRecords", |
| | 2 | 177 | | column: "CompletedAt"); |
| | | 178 | | |
| | 2 | 179 | | migrationBuilder.CreateIndex( |
| | 2 | 180 | | name: "IX_ActivityExecutionRecord_HasBookmarks", |
| | 2 | 181 | | schema: _schema.Schema, |
| | 2 | 182 | | table: "ActivityExecutionRecords", |
| | 2 | 183 | | column: "HasBookmarks"); |
| | | 184 | | |
| | 2 | 185 | | migrationBuilder.CreateIndex( |
| | 2 | 186 | | name: "IX_ActivityExecutionRecord_StartedAt", |
| | 2 | 187 | | schema: _schema.Schema, |
| | 2 | 188 | | table: "ActivityExecutionRecords", |
| | 2 | 189 | | column: "StartedAt"); |
| | | 190 | | |
| | 2 | 191 | | migrationBuilder.CreateIndex( |
| | 2 | 192 | | name: "IX_ActivityExecutionRecord_Status", |
| | 2 | 193 | | schema: _schema.Schema, |
| | 2 | 194 | | table: "ActivityExecutionRecords", |
| | 2 | 195 | | column: "Status"); |
| | | 196 | | |
| | 2 | 197 | | migrationBuilder.CreateIndex( |
| | 2 | 198 | | name: "IX_ActivityExecutionRecord_WorkflowInstanceId", |
| | 2 | 199 | | schema: _schema.Schema, |
| | 2 | 200 | | table: "ActivityExecutionRecords", |
| | 2 | 201 | | column: "WorkflowInstanceId"); |
| | | 202 | | |
| | 2 | 203 | | migrationBuilder.CreateIndex( |
| | 2 | 204 | | name: "IX_StoredBookmark_ActivityInstanceId", |
| | 2 | 205 | | schema: _schema.Schema, |
| | 2 | 206 | | table: "Bookmarks", |
| | 2 | 207 | | column: "ActivityInstanceId"); |
| | | 208 | | |
| | 2 | 209 | | migrationBuilder.CreateIndex( |
| | 2 | 210 | | name: "IX_StoredBookmark_ActivityTypeName", |
| | 2 | 211 | | schema: _schema.Schema, |
| | 2 | 212 | | table: "Bookmarks", |
| | 2 | 213 | | column: "ActivityTypeName"); |
| | | 214 | | |
| | 2 | 215 | | migrationBuilder.CreateIndex( |
| | 2 | 216 | | name: "IX_StoredBookmark_ActivityTypeName_Hash", |
| | 2 | 217 | | schema: _schema.Schema, |
| | 2 | 218 | | table: "Bookmarks", |
| | 2 | 219 | | columns: new[] { "ActivityTypeName", "Hash" }); |
| | | 220 | | |
| | 2 | 221 | | migrationBuilder.CreateIndex( |
| | 2 | 222 | | name: "IX_StoredBookmark_ActivityTypeName_Hash_WorkflowInstanceId", |
| | 2 | 223 | | schema: _schema.Schema, |
| | 2 | 224 | | table: "Bookmarks", |
| | 2 | 225 | | columns: new[] { "ActivityTypeName", "Hash", "WorkflowInstanceId" }); |
| | | 226 | | |
| | 2 | 227 | | migrationBuilder.CreateIndex( |
| | 2 | 228 | | name: "IX_StoredBookmark_CreatedAt", |
| | 2 | 229 | | schema: _schema.Schema, |
| | 2 | 230 | | table: "Bookmarks", |
| | 2 | 231 | | column: "CreatedAt"); |
| | | 232 | | |
| | 2 | 233 | | migrationBuilder.CreateIndex( |
| | 2 | 234 | | name: "IX_StoredBookmark_Hash", |
| | 2 | 235 | | schema: _schema.Schema, |
| | 2 | 236 | | table: "Bookmarks", |
| | 2 | 237 | | column: "Hash"); |
| | | 238 | | |
| | 2 | 239 | | migrationBuilder.CreateIndex( |
| | 2 | 240 | | name: "IX_StoredBookmark_WorkflowInstanceId", |
| | 2 | 241 | | schema: _schema.Schema, |
| | 2 | 242 | | table: "Bookmarks", |
| | 2 | 243 | | column: "WorkflowInstanceId"); |
| | | 244 | | |
| | 2 | 245 | | migrationBuilder.CreateIndex( |
| | 2 | 246 | | name: "IX_StoredTrigger_Hash", |
| | 2 | 247 | | schema: _schema.Schema, |
| | 2 | 248 | | table: "Triggers", |
| | 2 | 249 | | column: "Hash"); |
| | | 250 | | |
| | 2 | 251 | | migrationBuilder.CreateIndex( |
| | 2 | 252 | | name: "IX_StoredTrigger_Name", |
| | 2 | 253 | | schema: _schema.Schema, |
| | 2 | 254 | | table: "Triggers", |
| | 2 | 255 | | column: "Name"); |
| | | 256 | | |
| | 2 | 257 | | migrationBuilder.CreateIndex( |
| | 2 | 258 | | name: "IX_StoredTrigger_WorkflowDefinitionId", |
| | 2 | 259 | | schema: _schema.Schema, |
| | 2 | 260 | | table: "Triggers", |
| | 2 | 261 | | column: "WorkflowDefinitionId"); |
| | | 262 | | |
| | 2 | 263 | | migrationBuilder.CreateIndex( |
| | 2 | 264 | | name: "IX_StoredTrigger_WorkflowDefinitionVersionId", |
| | 2 | 265 | | schema: _schema.Schema, |
| | 2 | 266 | | table: "Triggers", |
| | 2 | 267 | | column: "WorkflowDefinitionVersionId"); |
| | | 268 | | |
| | 2 | 269 | | migrationBuilder.CreateIndex( |
| | 2 | 270 | | name: "IX_WorkflowExecutionLogRecord_ActivityId", |
| | 2 | 271 | | schema: _schema.Schema, |
| | 2 | 272 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 273 | | column: "ActivityId"); |
| | | 274 | | |
| | 2 | 275 | | migrationBuilder.CreateIndex( |
| | 2 | 276 | | name: "IX_WorkflowExecutionLogRecord_ActivityInstanceId", |
| | 2 | 277 | | schema: _schema.Schema, |
| | 2 | 278 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 279 | | column: "ActivityInstanceId"); |
| | | 280 | | |
| | 2 | 281 | | migrationBuilder.CreateIndex( |
| | 2 | 282 | | name: "IX_WorkflowExecutionLogRecord_ActivityName", |
| | 2 | 283 | | schema: _schema.Schema, |
| | 2 | 284 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 285 | | column: "ActivityName"); |
| | | 286 | | |
| | 2 | 287 | | migrationBuilder.CreateIndex( |
| | 2 | 288 | | name: "IX_WorkflowExecutionLogRecord_ActivityNodeId", |
| | 2 | 289 | | schema: _schema.Schema, |
| | 2 | 290 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 291 | | column: "ActivityNodeId"); |
| | | 292 | | |
| | 2 | 293 | | migrationBuilder.CreateIndex( |
| | 2 | 294 | | name: "IX_WorkflowExecutionLogRecord_ActivityType", |
| | 2 | 295 | | schema: _schema.Schema, |
| | 2 | 296 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 297 | | column: "ActivityType"); |
| | | 298 | | |
| | 2 | 299 | | migrationBuilder.CreateIndex( |
| | 2 | 300 | | name: "IX_WorkflowExecutionLogRecord_ActivityType_ActivityTypeVersion", |
| | 2 | 301 | | schema: _schema.Schema, |
| | 2 | 302 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 303 | | columns: new[] { "ActivityType", "ActivityTypeVersion" }); |
| | | 304 | | |
| | 2 | 305 | | migrationBuilder.CreateIndex( |
| | 2 | 306 | | name: "IX_WorkflowExecutionLogRecord_ActivityTypeVersion", |
| | 2 | 307 | | schema: _schema.Schema, |
| | 2 | 308 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 309 | | column: "ActivityTypeVersion"); |
| | | 310 | | |
| | 2 | 311 | | migrationBuilder.CreateIndex( |
| | 2 | 312 | | name: "IX_WorkflowExecutionLogRecord_EventName", |
| | 2 | 313 | | schema: _schema.Schema, |
| | 2 | 314 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 315 | | column: "EventName"); |
| | | 316 | | |
| | 2 | 317 | | migrationBuilder.CreateIndex( |
| | 2 | 318 | | name: "IX_WorkflowExecutionLogRecord_ParentActivityInstanceId", |
| | 2 | 319 | | schema: _schema.Schema, |
| | 2 | 320 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 321 | | column: "ParentActivityInstanceId"); |
| | | 322 | | |
| | 2 | 323 | | migrationBuilder.CreateIndex( |
| | 2 | 324 | | name: "IX_WorkflowExecutionLogRecord_Sequence", |
| | 2 | 325 | | schema: _schema.Schema, |
| | 2 | 326 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 327 | | column: "Sequence"); |
| | | 328 | | |
| | 2 | 329 | | migrationBuilder.CreateIndex( |
| | 2 | 330 | | name: "IX_WorkflowExecutionLogRecord_Timestamp", |
| | 2 | 331 | | schema: _schema.Schema, |
| | 2 | 332 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 333 | | column: "Timestamp"); |
| | | 334 | | |
| | 2 | 335 | | migrationBuilder.CreateIndex( |
| | 2 | 336 | | name: "IX_WorkflowExecutionLogRecord_Timestamp_Sequence", |
| | 2 | 337 | | schema: _schema.Schema, |
| | 2 | 338 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 339 | | columns: new[] { "Timestamp", "Sequence" }); |
| | | 340 | | |
| | 2 | 341 | | migrationBuilder.CreateIndex( |
| | 2 | 342 | | name: "IX_WorkflowExecutionLogRecord_WorkflowDefinitionId", |
| | 2 | 343 | | schema: _schema.Schema, |
| | 2 | 344 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 345 | | column: "WorkflowDefinitionId"); |
| | | 346 | | |
| | 2 | 347 | | migrationBuilder.CreateIndex( |
| | 2 | 348 | | name: "IX_WorkflowExecutionLogRecord_WorkflowDefinitionVersionId", |
| | 2 | 349 | | schema: _schema.Schema, |
| | 2 | 350 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 351 | | column: "WorkflowDefinitionVersionId"); |
| | | 352 | | |
| | 2 | 353 | | migrationBuilder.CreateIndex( |
| | 2 | 354 | | name: "IX_WorkflowExecutionLogRecord_WorkflowInstanceId", |
| | 2 | 355 | | schema: _schema.Schema, |
| | 2 | 356 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 357 | | column: "WorkflowInstanceId"); |
| | | 358 | | |
| | 2 | 359 | | migrationBuilder.CreateIndex( |
| | 2 | 360 | | name: "IX_WorkflowExecutionLogRecord_WorkflowVersion", |
| | 2 | 361 | | schema: _schema.Schema, |
| | 2 | 362 | | table: "WorkflowExecutionLogRecords", |
| | 2 | 363 | | column: "WorkflowVersion"); |
| | | 364 | | |
| | 2 | 365 | | migrationBuilder.CreateIndex( |
| | 2 | 366 | | name: "IX_WorkflowInboxMessage_ActivityInstanceId", |
| | 2 | 367 | | schema: _schema.Schema, |
| | 2 | 368 | | table: "WorkflowInboxMessages", |
| | 2 | 369 | | column: "ActivityInstanceId"); |
| | | 370 | | |
| | 2 | 371 | | migrationBuilder.CreateIndex( |
| | 2 | 372 | | name: "IX_WorkflowInboxMessage_ActivityTypeName", |
| | 2 | 373 | | schema: _schema.Schema, |
| | 2 | 374 | | table: "WorkflowInboxMessages", |
| | 2 | 375 | | column: "ActivityTypeName"); |
| | | 376 | | |
| | 2 | 377 | | migrationBuilder.CreateIndex( |
| | 2 | 378 | | name: "IX_WorkflowInboxMessage_CorrelationId", |
| | 2 | 379 | | schema: _schema.Schema, |
| | 2 | 380 | | table: "WorkflowInboxMessages", |
| | 2 | 381 | | column: "CorrelationId"); |
| | | 382 | | |
| | 2 | 383 | | migrationBuilder.CreateIndex( |
| | 2 | 384 | | name: "IX_WorkflowInboxMessage_CreatedAt", |
| | 2 | 385 | | schema: _schema.Schema, |
| | 2 | 386 | | table: "WorkflowInboxMessages", |
| | 2 | 387 | | column: "CreatedAt"); |
| | | 388 | | |
| | 2 | 389 | | migrationBuilder.CreateIndex( |
| | 2 | 390 | | name: "IX_WorkflowInboxMessage_ExpiresAt", |
| | 2 | 391 | | schema: _schema.Schema, |
| | 2 | 392 | | table: "WorkflowInboxMessages", |
| | 2 | 393 | | column: "ExpiresAt"); |
| | | 394 | | |
| | 2 | 395 | | migrationBuilder.CreateIndex( |
| | 2 | 396 | | name: "IX_WorkflowInboxMessage_Hash", |
| | 2 | 397 | | schema: _schema.Schema, |
| | 2 | 398 | | table: "WorkflowInboxMessages", |
| | 2 | 399 | | column: "Hash"); |
| | | 400 | | |
| | 2 | 401 | | migrationBuilder.CreateIndex( |
| | 2 | 402 | | name: "IX_WorkflowInboxMessage_WorkflowInstanceId", |
| | 2 | 403 | | schema: _schema.Schema, |
| | 2 | 404 | | table: "WorkflowInboxMessages", |
| | 2 | 405 | | column: "WorkflowInstanceId"); |
| | 2 | 406 | | } |
| | | 407 | | |
| | | 408 | | /// <inheritdoc /> |
| | | 409 | | protected override void Down(MigrationBuilder migrationBuilder) |
| | | 410 | | { |
| | 0 | 411 | | migrationBuilder.DropTable( |
| | 0 | 412 | | name: "ActivityExecutionRecords", |
| | 0 | 413 | | schema: _schema.Schema); |
| | | 414 | | |
| | 0 | 415 | | migrationBuilder.DropTable( |
| | 0 | 416 | | name: "Bookmarks", |
| | 0 | 417 | | schema: _schema.Schema); |
| | | 418 | | |
| | 0 | 419 | | migrationBuilder.DropTable( |
| | 0 | 420 | | name: "Triggers", |
| | 0 | 421 | | schema: _schema.Schema); |
| | | 422 | | |
| | 0 | 423 | | migrationBuilder.DropTable( |
| | 0 | 424 | | name: "WorkflowExecutionLogRecords", |
| | 0 | 425 | | schema: _schema.Schema); |
| | | 426 | | |
| | 0 | 427 | | migrationBuilder.DropTable( |
| | 0 | 428 | | name: "WorkflowInboxMessages", |
| | 0 | 429 | | schema: _schema.Schema); |
| | 0 | 430 | | } |
| | | 431 | | } |
| | | 432 | | } |