clhq-postgres-module 1.1.0-alpha.185 → 1.1.0-alpha.186
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/config/data-source.js +4 -1
- package/dist/migrations/1713000000055-CreateAgentJobsTable.d.ts +1 -1
- package/dist/migrations/1713000000055-CreateAgentJobsTable.js +4 -4
- package/dist/migrations/1713000000056-AddKlingJobEnrichmentSettings.d.ts +6 -0
- package/dist/migrations/1713000000056-AddKlingJobEnrichmentSettings.js +23 -0
- package/package.json +1 -1
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const typeorm_1 = require("typeorm");
|
|
4
4
|
const path_1 = require("path");
|
|
5
|
-
const
|
|
5
|
+
const rawUrl = process.env.PG_SESSION_POOLER_URL || process.env.PG_POOLER_URL;
|
|
6
|
+
const connectionUrl = rawUrl
|
|
7
|
+
?.replace(/([?&])sslmode=[^&]*&?/, (_m, p1) => (p1 === '?' ? '?' : ''))
|
|
8
|
+
.replace(/[?&]$/, '');
|
|
6
9
|
let dataSource;
|
|
7
10
|
if (connectionUrl) {
|
|
8
11
|
dataSource = new typeorm_1.DataSource({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class CreateAgentJobsTable1713000000055 implements MigrationInterface {
|
|
3
3
|
name: string;
|
|
4
4
|
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
5
|
down(queryRunner: QueryRunner): Promise<void>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CreateAgentJobsTable1713000000055 = void 0;
|
|
4
4
|
const typeorm_1 = require("typeorm");
|
|
5
|
-
class
|
|
5
|
+
class CreateAgentJobsTable1713000000055 {
|
|
6
6
|
constructor() {
|
|
7
|
-
this.name = '
|
|
7
|
+
this.name = 'CreateAgentJobsTable1713000000055';
|
|
8
8
|
}
|
|
9
9
|
async up(queryRunner) {
|
|
10
10
|
await queryRunner.createTable(new typeorm_1.Table({
|
|
@@ -146,4 +146,4 @@ class CreateAgentJobsTable1713000055 {
|
|
|
146
146
|
await queryRunner.dropTable('agent_jobs');
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
exports.
|
|
149
|
+
exports.CreateAgentJobsTable1713000000055 = CreateAgentJobsTable1713000000055;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
2
|
+
export declare class AddKlingJobEnrichmentSettings1713000000056 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddKlingJobEnrichmentSettings1713000000056 = void 0;
|
|
4
|
+
class AddKlingJobEnrichmentSettings1713000000056 {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'AddKlingJobEnrichmentSettings1713000000056';
|
|
7
|
+
}
|
|
8
|
+
async up(queryRunner) {
|
|
9
|
+
await queryRunner.query(`
|
|
10
|
+
ALTER TABLE kling_generation_jobs
|
|
11
|
+
ADD COLUMN IF NOT EXISTS music_enabled BOOLEAN NOT NULL DEFAULT TRUE,
|
|
12
|
+
ADD COLUMN IF NOT EXISTS music_pacing VARCHAR(16) NOT NULL DEFAULT 'medium'
|
|
13
|
+
`);
|
|
14
|
+
}
|
|
15
|
+
async down(queryRunner) {
|
|
16
|
+
await queryRunner.query(`
|
|
17
|
+
ALTER TABLE kling_generation_jobs
|
|
18
|
+
DROP COLUMN IF EXISTS music_pacing,
|
|
19
|
+
DROP COLUMN IF EXISTS music_enabled
|
|
20
|
+
`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.AddKlingJobEnrichmentSettings1713000000056 = AddKlingJobEnrichmentSettings1713000000056;
|