mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* fix for salesforce query becomes empty * salesforce fix updated * fix for dynamic form changes reverting how props are passed to element component * Bump version to 3.20.93-lts across all components --------- Co-authored-by: gsmithun4 <gsmithun4@gmail.com>
22 lines
790 B
TypeScript
22 lines
790 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class UpdateSalesforceQueryoptionsSoqlQueryToQuery1770370074631 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
UPDATE data_queries
|
|
SET "options" = (
|
|
CASE
|
|
WHEN "options"::jsonb ? 'query' THEN
|
|
("options"::jsonb - 'query' || jsonb_build_object('soql_query', "options"::jsonb->'query'))::json
|
|
ELSE
|
|
"options"
|
|
END
|
|
)
|
|
FROM data_sources ds
|
|
WHERE ds.id = data_source_id
|
|
AND ds.kind = 'salesforce'
|
|
AND "options"::jsonb ? 'query';`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
|
}
|