@sphereon/ssi-sdk.data-store 0.32.1-feature.new.develop.278 → 0.32.1-feature.new.develop.279
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.
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.d.ts.map +1 -1
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js +8 -5
- package/dist/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.js.map +1 -1
- package/package.json +5 -5
- package/src/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.ts +10 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1741895822987-FixCredentialClaimsReferencesUuid.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,gDAAiD,YAAW,kBAAkB;IACzF,IAAI,SAAmD;IAE1C,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"1741895822987-FixCredentialClaimsReferencesUuid.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEzD,qBAAa,gDAAiD,YAAW,kBAAkB;IACzF,IAAI,SAAmD;IAE1C,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAQ3D"}
|
|
@@ -17,16 +17,19 @@ class FixCredentialClaimsReferencesUuidPG1741895822987 {
|
|
|
17
17
|
up(queryRunner) {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
// Migrate varchar to uuid
|
|
20
|
-
yield queryRunner.query(`
|
|
21
|
-
|
|
20
|
+
yield queryRunner.query(`
|
|
21
|
+
ALTER TABLE "CredentialClaims"
|
|
22
|
+
ALTER COLUMN "credentialLocaleBrandingId" TYPE uuid USING "credentialLocaleBrandingId"::uuid;
|
|
23
|
+
`);
|
|
22
24
|
});
|
|
23
25
|
}
|
|
24
26
|
down(queryRunner) {
|
|
25
27
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
28
|
// Migrate uuid back to varchar
|
|
27
|
-
yield queryRunner.query(`
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
yield queryRunner.query(`
|
|
30
|
+
ALTER TABLE "CredentialClaims"
|
|
31
|
+
ALTER COLUMN "credentialLocaleBrandingId" TYPE character varying USING "credentialLocaleBrandingId"::text;
|
|
32
|
+
`);
|
|
30
33
|
});
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1741895822987-FixCredentialClaimsReferencesUuid.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gDAAgD;IAA7D;QACE,SAAI,GAAG,gDAAgD,CAAA;
|
|
1
|
+
{"version":3,"file":"1741895822987-FixCredentialClaimsReferencesUuid.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1741895822987-FixCredentialClaimsReferencesUuid.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAa,gDAAgD;IAA7D;QACE,SAAI,GAAG,gDAAgD,CAAA;IAmBzD,CAAC;IAjBc,EAAE,CAAC,WAAwB;;YACtC,0BAA0B;YAC1B,MAAM,WAAW,CAAC,KAAK,CAAC;;;KAGvB,CAAC,CAAA;QAEJ,CAAC;KAAA;IAEY,IAAI,CAAC,WAAwB;;YACxC,+BAA+B;YAC/B,MAAM,WAAW,CAAC,KAAK,CAAC;;;KAGvB,CAAC,CAAA;QAEJ,CAAC;KAAA;CACF;AApBD,4GAoBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.32.1-feature.new.develop.
|
|
3
|
+
"version": "0.32.1-feature.new.develop.279+b8f51048",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"@sphereon/pex": "5.0.0-unstable.28",
|
|
19
19
|
"@sphereon/ssi-sdk-ext.did-utils": "0.27.1-next.21",
|
|
20
20
|
"@sphereon/ssi-sdk-ext.identifier-resolution": "0.27.1-next.21",
|
|
21
|
-
"@sphereon/ssi-sdk.agent-config": "0.32.1-feature.new.develop.
|
|
22
|
-
"@sphereon/ssi-sdk.core": "0.32.1-feature.new.develop.
|
|
23
|
-
"@sphereon/ssi-types": "0.32.1-feature.new.develop.
|
|
21
|
+
"@sphereon/ssi-sdk.agent-config": "0.32.1-feature.new.develop.279+b8f51048",
|
|
22
|
+
"@sphereon/ssi-sdk.core": "0.32.1-feature.new.develop.279+b8f51048",
|
|
23
|
+
"@sphereon/ssi-types": "0.32.1-feature.new.develop.279+b8f51048",
|
|
24
24
|
"@veramo/core": "4.2.0",
|
|
25
25
|
"@veramo/utils": "4.2.0",
|
|
26
26
|
"blakejs": "^1.2.1",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"Contact Store"
|
|
55
55
|
],
|
|
56
56
|
"nx": {},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "b8f51048ce091942e8e2e2a410dc9604bcb94665"
|
|
58
58
|
}
|
|
@@ -5,14 +5,19 @@ export class FixCredentialClaimsReferencesUuidPG1741895822987 implements Migrati
|
|
|
5
5
|
|
|
6
6
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
7
7
|
// Migrate varchar to uuid
|
|
8
|
-
await queryRunner.query(`
|
|
9
|
-
|
|
8
|
+
await queryRunner.query(`
|
|
9
|
+
ALTER TABLE "CredentialClaims"
|
|
10
|
+
ALTER COLUMN "credentialLocaleBrandingId" TYPE uuid USING "credentialLocaleBrandingId"::uuid;
|
|
11
|
+
`)
|
|
12
|
+
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
13
16
|
// Migrate uuid back to varchar
|
|
14
|
-
await queryRunner.query(`
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
await queryRunner.query(`
|
|
18
|
+
ALTER TABLE "CredentialClaims"
|
|
19
|
+
ALTER COLUMN "credentialLocaleBrandingId" TYPE character varying USING "credentialLocaleBrandingId"::text;
|
|
20
|
+
`)
|
|
21
|
+
|
|
17
22
|
}
|
|
18
23
|
}
|