@dbos-inc/dbos-sdk 2.9.17-preview → 2.9.21-preview

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,6 @@
1
+ // Due to a naming issue, this migration is mistakenly applied before 20252101000000_workflow_queues_executor_id.
2
+ // Please see the 20252101000000_workflow_queues_executor_id migration for more details.
3
+
1
4
  /**
2
5
  * @param { import("knex").Knex } knex
3
6
  * @returns { Promise<void> }
@@ -1,3 +1,6 @@
1
+ // Due to a naming issue, this migration is mistakenly applied before 20252101000000_workflow_queues_executor_id.
2
+ // Please see the 20252101000000_workflow_queues_executor_id migration for more details.
3
+
1
4
  /**
2
5
  * @param { import("knex").Knex } knex
3
6
  * @returns { Promise<void> }
@@ -1,9 +1,25 @@
1
+ // This migration should have been prefixed with 20250121 instead of 20252101.
2
+ // Because of this mistake, correctly prefixed migrations that are added in 2025 will be applied in the wrong order.
3
+ // For example, 20250312171547_function_name_op_outputs and 20250319190617_add_childid_opoutputs were added after but get applied before this migration.
4
+ // Luckily, those two migrations affect the operation_outputs table, so incorrect ordering is less impactful.
5
+
6
+ // For the rest of 2025, we need to add 20 to the month field of the prefix so that the migrations are applied in the correct order.
7
+ // Example, a migration added on May 1st, 2025 should be prefixed with 20252501.
8
+
9
+ /**
10
+ * @param { import("knex").Knex } knex
11
+ * @returns { Promise<void> }
12
+ */
1
13
  exports.up = function (knex) {
2
14
  return knex.schema.withSchema('dbos').table('workflow_queue', function (table) {
3
15
  table.text('executor_id');
4
16
  });
5
17
  };
6
18
 
19
+ /**
20
+ * @param { import("knex").Knex } knex
21
+ * @returns { Promise<void> }
22
+ */
7
23
  exports.down = function (knex) {
8
24
  return knex.schema.withSchema('dbos').table('workflow_queue', function (table) {
9
25
  table.dropColumn('executor_id');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "2.9.17-preview",
3
+ "version": "2.9.21-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {