@jskit-ai/oidc-issuer-core 0.1.45 → 0.1.46

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.
@@ -0,0 +1,25 @@
1
+ // Knex sorts this file just before oidc_issuer_initial.cjs ("-" sorts before "."), so it runs first on every
2
+ // database that has not run it. It runs that released migration with each table it creates in the collation of
3
+ // oidc_issuer_accounts, or of the next table listed that exists, instead of the database's default, and repairs a
4
+ // table that default left: see migrateInExistingCollation. The released migration then finds its tables in place.
5
+ const released = require("./oidc_issuer_initial.cjs");
6
+
7
+ exports.up = async function up(knex) {
8
+ const { migrateInExistingCollation } = await import("@jskit-ai/database-runtime/server/tableCollationMigrations");
9
+ await migrateInExistingCollation(knex, {
10
+ migration: "oidc_issuer_initial.cjs",
11
+ up: released.up,
12
+ tables: [
13
+ "oidc_issuer_accounts",
14
+ "oidc_issuer_models",
15
+ "oidc_issuer_clients",
16
+ "oidc_issuer_signing_keys",
17
+ "oidc_issuer_email_tokens",
18
+ "oidc_issuer_rate_limits"
19
+ ],
20
+ referenceTables: ["oidc_issuer_accounts", "users", "auth_local_users"]
21
+ });
22
+ };
23
+
24
+ // The released migration's down drops its tables.
25
+ exports.down = async function down() {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/oidc-issuer-core",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "jskit test"
@@ -122,7 +122,7 @@
122
122
  "@jskit-ai/auth-provider-local-core": "0.2.38"
123
123
  },
124
124
  "peerDependencies": {
125
- "@jskit-ai/database-runtime": "0.1.277",
125
+ "@jskit-ai/database-runtime": "0.1.278",
126
126
  "@jskit-ai/kernel": "0.2.28"
127
127
  }
128
128
  }
@@ -2,8 +2,8 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/database-runtime": "0.1.277",
6
- "@jskit-ai/database-runtime-mysql": "0.1.275",
7
- "@jskit-ai/oidc-issuer-core": "0.1.45"
5
+ "@jskit-ai/database-runtime": "0.1.278",
6
+ "@jskit-ai/database-runtime-mysql": "0.1.276",
7
+ "@jskit-ai/oidc-issuer-core": "0.1.46"
8
8
  }
9
9
  }