@colveor/core 1.2.0 → 1.2.1
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/CHANGELOG.md +7 -0
- package/dist/database/migrations/1784284557959-full-schema.d.ts.map +1 -1
- package/dist/database/migrations/1784284557959-full-schema.js +48 -14
- package/dist/database/migrations/1784284557959-full-schema.js.map +1 -1
- package/dist/database/migrations/1784284557960-audit-partitioning.d.ts +17 -0
- package/dist/database/migrations/1784284557960-audit-partitioning.d.ts.map +1 -0
- package/dist/database/migrations/{1785006199390-audit-hardening.js → 1784284557960-audit-partitioning.js} +97 -58
- package/dist/database/migrations/1784284557960-audit-partitioning.js.map +1 -0
- package/package.json +1 -1
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.d.ts +0 -7
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.d.ts.map +0 -1
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.js +0 -24
- package/dist/database/migrations/1785006199371-auth-mfa-oauth.js.map +0 -1
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.d.ts +0 -7
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.d.ts.map +0 -1
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.js +0 -16
- package/dist/database/migrations/1785006199372-auth-mfa-backup-codes.js.map +0 -1
- package/dist/database/migrations/1785006199373-auth-gap-fixes.d.ts +0 -7
- package/dist/database/migrations/1785006199373-auth-gap-fixes.d.ts.map +0 -1
- package/dist/database/migrations/1785006199373-auth-gap-fixes.js +0 -14
- package/dist/database/migrations/1785006199373-auth-gap-fixes.js.map +0 -1
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.d.ts +0 -13
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.d.ts.map +0 -1
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.js +0 -35
- package/dist/database/migrations/1785006199374-auth-sessions-indexes.js.map +0 -1
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.d.ts +0 -11
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.d.ts.map +0 -1
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.js +0 -60
- package/dist/database/migrations/1785006199375-auth-identity-and-audit.js.map +0 -1
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.d.ts +0 -14
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.d.ts.map +0 -1
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.js +0 -39
- package/dist/database/migrations/1785006199376-auth-settings-security-defaults.js.map +0 -1
- package/dist/database/migrations/1785006199377-auth-security-hardening.d.ts +0 -13
- package/dist/database/migrations/1785006199377-auth-security-hardening.d.ts.map +0 -1
- package/dist/database/migrations/1785006199377-auth-security-hardening.js +0 -69
- package/dist/database/migrations/1785006199377-auth-security-hardening.js.map +0 -1
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.d.ts +0 -11
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.d.ts.map +0 -1
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.js +0 -51
- package/dist/database/migrations/1785006199378-auth-family-denylist-and-hardening.js.map +0 -1
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.d.ts +0 -12
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.d.ts.map +0 -1
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.js +0 -37
- package/dist/database/migrations/1785006199379-authz-lifecycle-hardening.js.map +0 -1
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.d.ts +0 -12
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.d.ts.map +0 -1
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.js +0 -74
- package/dist/database/migrations/1785006199380-auth-remaining-gaps.js.map +0 -1
- package/dist/database/migrations/1785006199381-settings-blast-radius.d.ts +0 -12
- package/dist/database/migrations/1785006199381-settings-blast-radius.d.ts.map +0 -1
- package/dist/database/migrations/1785006199381-settings-blast-radius.js +0 -52
- package/dist/database/migrations/1785006199381-settings-blast-radius.js.map +0 -1
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.d.ts +0 -11
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.d.ts.map +0 -1
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.js +0 -36
- package/dist/database/migrations/1785006199382-oauth-client-ids-lock.js.map +0 -1
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.d.ts +0 -12
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.d.ts.map +0 -1
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.js +0 -39
- package/dist/database/migrations/1785006199383-settings-role-and-verified-lock.js.map +0 -1
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.d.ts +0 -12
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.d.ts.map +0 -1
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.js +0 -39
- package/dist/database/migrations/1785006199384-settings-providers-and-test-otp-lock.js.map +0 -1
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.d.ts +0 -13
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.d.ts.map +0 -1
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.js +0 -72
- package/dist/database/migrations/1785006199385-settings-auth-surface-lock.js.map +0 -1
- package/dist/database/migrations/1785006199386-audit-events.d.ts +0 -10
- package/dist/database/migrations/1785006199386-audit-events.d.ts.map +0 -1
- package/dist/database/migrations/1785006199386-audit-events.js +0 -60
- package/dist/database/migrations/1785006199386-audit-events.js.map +0 -1
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.d.ts +0 -10
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.d.ts.map +0 -1
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.js +0 -25
- package/dist/database/migrations/1785006199387-audit-resource-id-varchar.js.map +0 -1
- package/dist/database/migrations/1785006199388-audit-enterprise.d.ts +0 -11
- package/dist/database/migrations/1785006199388-audit-enterprise.d.ts.map +0 -1
- package/dist/database/migrations/1785006199388-audit-enterprise.js +0 -157
- package/dist/database/migrations/1785006199388-audit-enterprise.js.map +0 -1
- package/dist/database/migrations/1785006199389-drop-admin-logs.d.ts +0 -10
- package/dist/database/migrations/1785006199389-drop-admin-logs.d.ts.map +0 -1
- package/dist/database/migrations/1785006199389-drop-admin-logs.js +0 -38
- package/dist/database/migrations/1785006199389-drop-admin-logs.js.map +0 -1
- package/dist/database/migrations/1785006199390-audit-hardening.d.ts +0 -14
- package/dist/database/migrations/1785006199390-audit-hardening.d.ts.map +0 -1
- package/dist/database/migrations/1785006199390-audit-hardening.js.map +0 -1
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.d.ts +0 -10
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.d.ts.map +0 -1
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.js +0 -39
- package/dist/database/migrations/1785006199391-audit-owner-schema-create.js.map +0 -1
- package/dist/database/migrations/1785006199392-profile-photo-url.d.ts +0 -11
- package/dist/database/migrations/1785006199392-profile-photo-url.d.ts.map +0 -1
- package/dist/database/migrations/1785006199392-profile-photo-url.js +0 -33
- package/dist/database/migrations/1785006199392-profile-photo-url.js.map +0 -1
- package/dist/database/migrations/1785006199393-profile-cover-url.d.ts +0 -11
- package/dist/database/migrations/1785006199393-profile-cover-url.d.ts.map +0 -1
- package/dist/database/migrations/1785006199393-profile-cover-url.js +0 -33
- package/dist/database/migrations/1785006199393-profile-cover-url.js.map +0 -1
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.d.ts +0 -11
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.d.ts.map +0 -1
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.js +0 -24
- package/dist/database/migrations/1785006199394-profile-is-public-default-false.js.map +0 -1
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.d.ts +0 -10
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.d.ts.map +0 -1
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.js +0 -35
- package/dist/database/migrations/1785006199395-delivery-scale-indexes.js.map +0 -1
- package/dist/database/migrations/1785006199396-delivery-recipient-index.d.ts +0 -11
- package/dist/database/migrations/1785006199396-delivery-recipient-index.d.ts.map +0 -1
- package/dist/database/migrations/1785006199396-delivery-recipient-index.js +0 -23
- package/dist/database/migrations/1785006199396-delivery-recipient-index.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199390-audit-hardening.js","sourceRoot":"","sources":["../../../src/database/migrations/1785006199390-audit-hardening.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACH,MAAa,2BAA2B;IACvC,IAAI,GAAG,6BAA6B,CAAC;IAE9B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACvC,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEvB,CAAC,CAAC;QAEH,wEAAwE;QACxE,MAAM,WAAW,CAAC,KAAK,CAAC,6DAA6D,CAAC,CAAC;QACvF,MAAM,WAAW,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;QAC3E,MAAM,WAAW,CAAC,KAAK,CACtB,mEAAmE,CACnE,CAAC;QACF,MAAM,WAAW,CAAC,KAAK,CAAC,4DAA4D,CAAC,CAAC;QAEtF,MAAM,WAAW,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAC;QACjF,MAAM,WAAW,CAAC,KAAK,CACtB,yEAAyE,CACzE,CAAC;QAEF,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;GAsBvB,CAAC,CAAC;QAEH,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCvB,CAAC,CAAC;QAEH,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;GAWvB,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J,CAAC;CACD;AA1YD,kEA0YC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type MigrationInterface, type QueryRunner } from 'typeorm';
|
|
2
|
-
/**
|
|
3
|
-
* Allow colveor_audit_owner to create monthly partitions via SECURITY DEFINER.
|
|
4
|
-
*/
|
|
5
|
-
export declare class AuditOwnerSchemaCreate1785006199391 implements MigrationInterface {
|
|
6
|
-
name: string;
|
|
7
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
8
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=1785006199391-audit-owner-schema-create.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199391-audit-owner-schema-create.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1785006199391-audit-owner-schema-create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAEpE;;GAEG;AACH,qBAAa,mCAAoC,YAAW,kBAAkB;IAC7E,IAAI,SAAyC;IAEhC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAe3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAc1D"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuditOwnerSchemaCreate1785006199391 = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Allow colveor_audit_owner to create monthly partitions via SECURITY DEFINER.
|
|
6
|
-
*/
|
|
7
|
-
class AuditOwnerSchemaCreate1785006199391 {
|
|
8
|
-
name = 'AuditOwnerSchemaCreate1785006199391';
|
|
9
|
-
async up(queryRunner) {
|
|
10
|
-
await queryRunner.query(`
|
|
11
|
-
DO $body$
|
|
12
|
-
BEGIN
|
|
13
|
-
IF EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'colveor_audit_owner') THEN
|
|
14
|
-
GRANT USAGE, CREATE ON SCHEMA public TO colveor_audit_owner;
|
|
15
|
-
END IF;
|
|
16
|
-
EXCEPTION
|
|
17
|
-
WHEN insufficient_privilege OR undefined_object THEN
|
|
18
|
-
RAISE NOTICE 'audit owner schema grant skipped: %', SQLERRM;
|
|
19
|
-
END
|
|
20
|
-
$body$
|
|
21
|
-
`);
|
|
22
|
-
}
|
|
23
|
-
async down(queryRunner) {
|
|
24
|
-
await queryRunner.query(`
|
|
25
|
-
DO $body$
|
|
26
|
-
BEGIN
|
|
27
|
-
IF EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'colveor_audit_owner') THEN
|
|
28
|
-
REVOKE CREATE ON SCHEMA public FROM colveor_audit_owner;
|
|
29
|
-
END IF;
|
|
30
|
-
EXCEPTION
|
|
31
|
-
WHEN insufficient_privilege OR undefined_object THEN
|
|
32
|
-
RAISE NOTICE 'audit owner schema revoke skipped: %', SQLERRM;
|
|
33
|
-
END
|
|
34
|
-
$body$
|
|
35
|
-
`);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.AuditOwnerSchemaCreate1785006199391 = AuditOwnerSchemaCreate1785006199391;
|
|
39
|
-
//# sourceMappingURL=1785006199391-audit-owner-schema-create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199391-audit-owner-schema-create.js","sourceRoot":"","sources":["../../../src/database/migrations/1785006199391-audit-owner-schema-create.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,mCAAmC;IAC/C,IAAI,GAAG,qCAAqC,CAAC;IAEtC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACvC,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;GAWvB,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACzC,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;;;;GAWvB,CAAC,CAAC;IACJ,CAAC;CACD;AAhCD,kFAgCC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type MigrationInterface, type QueryRunner } from 'typeorm';
|
|
2
|
-
/**
|
|
3
|
-
* Denormalized public CDN URL for profile avatars (read projection).
|
|
4
|
-
* Source of truth remains photo_file_id; URL is set on profile write / file replace.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ProfilePhotoUrl1785006199392 implements MigrationInterface {
|
|
7
|
-
name: string;
|
|
8
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
9
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=1785006199392-profile-photo-url.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199392-profile-photo-url.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1785006199392-profile-photo-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAEpE;;;GAGG;AACH,qBAAa,4BAA6B,YAAW,kBAAkB;IACtE,IAAI,SAAkC;IAEzB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAM1D"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfilePhotoUrl1785006199392 = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Denormalized public CDN URL for profile avatars (read projection).
|
|
6
|
-
* Source of truth remains photo_file_id; URL is set on profile write / file replace.
|
|
7
|
-
*/
|
|
8
|
-
class ProfilePhotoUrl1785006199392 {
|
|
9
|
-
name = 'ProfilePhotoUrl1785006199392';
|
|
10
|
-
async up(queryRunner) {
|
|
11
|
-
await queryRunner.query(`
|
|
12
|
-
ALTER TABLE "user_profiles"
|
|
13
|
-
ADD COLUMN IF NOT EXISTS "photo_url" character varying(1024)
|
|
14
|
-
`);
|
|
15
|
-
await queryRunner.query(`
|
|
16
|
-
UPDATE "user_profiles" AS p
|
|
17
|
-
SET "photo_url" = f."public_url"
|
|
18
|
-
FROM "uploaded_files" AS f
|
|
19
|
-
WHERE p."photo_file_id" = f."id"
|
|
20
|
-
AND f."public_url" IS NOT NULL
|
|
21
|
-
AND f."deleted_at" IS NULL
|
|
22
|
-
AND (p."photo_url" IS NULL OR p."photo_url" = '')
|
|
23
|
-
`);
|
|
24
|
-
}
|
|
25
|
-
async down(queryRunner) {
|
|
26
|
-
await queryRunner.query(`
|
|
27
|
-
ALTER TABLE "user_profiles"
|
|
28
|
-
DROP COLUMN IF EXISTS "photo_url"
|
|
29
|
-
`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.ProfilePhotoUrl1785006199392 = ProfilePhotoUrl1785006199392;
|
|
33
|
-
//# sourceMappingURL=1785006199392-profile-photo-url.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199392-profile-photo-url.js","sourceRoot":"","sources":["../../../src/database/migrations/1785006199392-profile-photo-url.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,4BAA4B;IACxC,IAAI,GAAG,8BAA8B,CAAC;IAE/B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACvC,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;QAEH,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;GAQvB,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACzC,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;IACJ,CAAC;CACD;AA1BD,oEA0BC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
/**
|
|
3
|
-
* Denormalized public CDN URL for cover photos (read projection).
|
|
4
|
-
* Mirrors photo_url; SoT remains cover_photo_file_id.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ProfileCoverUrl1785006199393 implements MigrationInterface {
|
|
7
|
-
name: string;
|
|
8
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
9
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=1785006199393-profile-cover-url.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199393-profile-cover-url.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1785006199393-profile-cover-url.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE/D;;;GAGG;AACH,qBAAa,4BAA6B,YAAW,kBAAkB;IACtE,IAAI,SAAkC;IAEzB,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAM1D"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfileCoverUrl1785006199393 = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Denormalized public CDN URL for cover photos (read projection).
|
|
6
|
-
* Mirrors photo_url; SoT remains cover_photo_file_id.
|
|
7
|
-
*/
|
|
8
|
-
class ProfileCoverUrl1785006199393 {
|
|
9
|
-
name = 'ProfileCoverUrl1785006199393';
|
|
10
|
-
async up(queryRunner) {
|
|
11
|
-
await queryRunner.query(`
|
|
12
|
-
ALTER TABLE "user_profiles"
|
|
13
|
-
ADD COLUMN IF NOT EXISTS "cover_photo_url" character varying(1024)
|
|
14
|
-
`);
|
|
15
|
-
await queryRunner.query(`
|
|
16
|
-
UPDATE "user_profiles" AS p
|
|
17
|
-
SET "cover_photo_url" = f."public_url"
|
|
18
|
-
FROM "uploaded_files" AS f
|
|
19
|
-
WHERE p."cover_photo_file_id" = f."id"
|
|
20
|
-
AND f."public_url" IS NOT NULL
|
|
21
|
-
AND f."deleted_at" IS NULL
|
|
22
|
-
AND (p."cover_photo_url" IS NULL OR p."cover_photo_url" = '')
|
|
23
|
-
`);
|
|
24
|
-
}
|
|
25
|
-
async down(queryRunner) {
|
|
26
|
-
await queryRunner.query(`
|
|
27
|
-
ALTER TABLE "user_profiles"
|
|
28
|
-
DROP COLUMN IF EXISTS "cover_photo_url"
|
|
29
|
-
`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.ProfileCoverUrl1785006199393 = ProfileCoverUrl1785006199393;
|
|
33
|
-
//# sourceMappingURL=1785006199393-profile-cover-url.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199393-profile-cover-url.js","sourceRoot":"","sources":["../../../src/database/migrations/1785006199393-profile-cover-url.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,4BAA4B;IACxC,IAAI,GAAG,8BAA8B,CAAC;IAE/B,KAAK,CAAC,EAAE,CAAC,WAAwB;QACvC,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;QAEH,MAAM,WAAW,CAAC,KAAK,CAAC;;;;;;;;GAQvB,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACzC,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;IACJ,CAAC;CACD;AA1BD,oEA0BC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
/**
|
|
3
|
-
* New profiles default to private (opt-in public username lookup).
|
|
4
|
-
* Existing rows are left unchanged.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ProfileIsPublicDefaultFalse1785006199394 implements MigrationInterface {
|
|
7
|
-
name: string;
|
|
8
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
9
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=1785006199394-profile-is-public-default-false.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199394-profile-is-public-default-false.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1785006199394-profile-is-public-default-false.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE/D;;;GAGG;AACH,qBAAa,wCAAyC,YAAW,kBAAkB;IAClF,IAAI,SAA8C;IAErC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAO3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAM1D"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfileIsPublicDefaultFalse1785006199394 = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* New profiles default to private (opt-in public username lookup).
|
|
6
|
-
* Existing rows are left unchanged.
|
|
7
|
-
*/
|
|
8
|
-
class ProfileIsPublicDefaultFalse1785006199394 {
|
|
9
|
-
name = 'ProfileIsPublicDefaultFalse1785006199394';
|
|
10
|
-
async up(queryRunner) {
|
|
11
|
-
await queryRunner.query(`
|
|
12
|
-
ALTER TABLE "user_profiles"
|
|
13
|
-
ALTER COLUMN "is_public" SET DEFAULT false
|
|
14
|
-
`);
|
|
15
|
-
}
|
|
16
|
-
async down(queryRunner) {
|
|
17
|
-
await queryRunner.query(`
|
|
18
|
-
ALTER TABLE "user_profiles"
|
|
19
|
-
ALTER COLUMN "is_public" SET DEFAULT true
|
|
20
|
-
`);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.ProfileIsPublicDefaultFalse1785006199394 = ProfileIsPublicDefaultFalse1785006199394;
|
|
24
|
-
//# sourceMappingURL=1785006199394-profile-is-public-default-false.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199394-profile-is-public-default-false.js","sourceRoot":"","sources":["../../../src/database/migrations/1785006199394-profile-is-public-default-false.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,wCAAwC;IACpD,IAAI,GAAG,0CAA0C,CAAC;IAE3C,KAAK,CAAC,EAAE,CAAC,WAAwB;QACvC,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACzC,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;IACJ,CAAC;CACD;AAhBD,4FAgBC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
/**
|
|
3
|
-
* Indexes for delivery admin queries, retention, and device-token lookups.
|
|
4
|
-
*/
|
|
5
|
-
export declare class DeliveryScaleIndexes1785006199395 implements MigrationInterface {
|
|
6
|
-
name: string;
|
|
7
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
8
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=1785006199395-delivery-scale-indexes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199395-delivery-scale-indexes.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1785006199395-delivery-scale-indexes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE/D;;GAEG;AACH,qBAAa,iCAAkC,YAAW,kBAAkB;IAC3E,IAAI,SAAuC;IAE9B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAmB3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAQ1D"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeliveryScaleIndexes1785006199395 = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Indexes for delivery admin queries, retention, and device-token lookups.
|
|
6
|
-
*/
|
|
7
|
-
class DeliveryScaleIndexes1785006199395 {
|
|
8
|
-
name = 'DeliveryScaleIndexes1785006199395';
|
|
9
|
-
async up(queryRunner) {
|
|
10
|
-
await queryRunner.query(`
|
|
11
|
-
CREATE INDEX IF NOT EXISTS "IDX_notification_delivery_logs_status_created"
|
|
12
|
-
ON "notification_delivery_logs" ("status", "created_at")
|
|
13
|
-
`);
|
|
14
|
-
await queryRunner.query(`
|
|
15
|
-
CREATE INDEX IF NOT EXISTS "IDX_notification_delivery_logs_created"
|
|
16
|
-
ON "notification_delivery_logs" ("created_at")
|
|
17
|
-
`);
|
|
18
|
-
await queryRunner.query(`
|
|
19
|
-
CREATE INDEX IF NOT EXISTS "IDX_device_tokens_user_active"
|
|
20
|
-
ON "device_tokens" ("user_id", "is_active")
|
|
21
|
-
`);
|
|
22
|
-
await queryRunner.query(`
|
|
23
|
-
CREATE INDEX IF NOT EXISTS "IDX_device_tokens_fcm_token"
|
|
24
|
-
ON "device_tokens" ("fcm_token")
|
|
25
|
-
`);
|
|
26
|
-
}
|
|
27
|
-
async down(queryRunner) {
|
|
28
|
-
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_device_tokens_fcm_token"`);
|
|
29
|
-
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_device_tokens_user_active"`);
|
|
30
|
-
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_notification_delivery_logs_created"`);
|
|
31
|
-
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_notification_delivery_logs_status_created"`);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.DeliveryScaleIndexes1785006199395 = DeliveryScaleIndexes1785006199395;
|
|
35
|
-
//# sourceMappingURL=1785006199395-delivery-scale-indexes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199395-delivery-scale-indexes.js","sourceRoot":"","sources":["../../../src/database/migrations/1785006199395-delivery-scale-indexes.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,MAAa,iCAAiC;IAC7C,IAAI,GAAG,mCAAmC,CAAC;IAEpC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACvC,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;QACH,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;QACH,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;QACH,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACzC,MAAM,WAAW,CAAC,KAAK,CAAC,oDAAoD,CAAC,CAAC;QAC9E,MAAM,WAAW,CAAC,KAAK,CAAC,sDAAsD,CAAC,CAAC;QAChF,MAAM,WAAW,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;QACzF,MAAM,WAAW,CAAC,KAAK,CACtB,sEAAsE,CACtE,CAAC;IACH,CAAC;CACD;AA9BD,8EA8BC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
/**
|
|
3
|
-
* Expression index for admin delivery prefix search:
|
|
4
|
-
* `LOWER(recipient) LIKE 'x%'` (case-insensitive, pattern_ops).
|
|
5
|
-
*/
|
|
6
|
-
export declare class DeliveryRecipientIndex1785006199396 implements MigrationInterface {
|
|
7
|
-
name: string;
|
|
8
|
-
up(queryRunner: QueryRunner): Promise<void>;
|
|
9
|
-
down(queryRunner: QueryRunner): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=1785006199396-delivery-recipient-index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199396-delivery-recipient-index.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1785006199396-delivery-recipient-index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE/D;;;GAGG;AACH,qBAAa,mCAAoC,YAAW,kBAAkB;IAC7E,IAAI,SAAyC;IAEhC,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAS3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAK1D"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeliveryRecipientIndex1785006199396 = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Expression index for admin delivery prefix search:
|
|
6
|
-
* `LOWER(recipient) LIKE 'x%'` (case-insensitive, pattern_ops).
|
|
7
|
-
*/
|
|
8
|
-
class DeliveryRecipientIndex1785006199396 {
|
|
9
|
-
name = 'DeliveryRecipientIndex1785006199396';
|
|
10
|
-
async up(queryRunner) {
|
|
11
|
-
// Drop plain btree if an earlier revision of this migration created it.
|
|
12
|
-
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_notification_delivery_logs_recipient"`);
|
|
13
|
-
await queryRunner.query(`
|
|
14
|
-
CREATE INDEX IF NOT EXISTS "IDX_notification_delivery_logs_recipient_lower"
|
|
15
|
-
ON "notification_delivery_logs" (LOWER("recipient") varchar_pattern_ops)
|
|
16
|
-
`);
|
|
17
|
-
}
|
|
18
|
-
async down(queryRunner) {
|
|
19
|
-
await queryRunner.query(`DROP INDEX IF EXISTS "IDX_notification_delivery_logs_recipient_lower"`);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.DeliveryRecipientIndex1785006199396 = DeliveryRecipientIndex1785006199396;
|
|
23
|
-
//# sourceMappingURL=1785006199396-delivery-recipient-index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"1785006199396-delivery-recipient-index.js","sourceRoot":"","sources":["../../../src/database/migrations/1785006199396-delivery-recipient-index.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AACH,MAAa,mCAAmC;IAC/C,IAAI,GAAG,qCAAqC,CAAC;IAEtC,KAAK,CAAC,EAAE,CAAC,WAAwB;QACvC,wEAAwE;QACxE,MAAM,WAAW,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;QAC3F,MAAM,WAAW,CAAC,KAAK,CAAC;;;GAGvB,CAAC,CAAC;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAwB;QACzC,MAAM,WAAW,CAAC,KAAK,CACtB,uEAAuE,CACvE,CAAC;IACH,CAAC;CACD;AAjBD,kFAiBC"}
|