https://www.activepieces.com logo
@Amr Elmohamady your change caused.
# 🐶|general
m
Hi @bram_18401 I am taking look
Can you sync with the main?
b
Let me try
m
It's working forme
m
Can you give me the last commit you have, what is the output of
Copy code
git log
b
I fix it with
Copy code
import { MigrationInterface, QueryRunner } from 'typeorm'

export class AddOpenRouterKeyToPlatformPlan1765109187883 implements MigrationInterface {
    name = 'AddOpenRouterKeyToPlatformPlan1765109187883'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            ALTER TABLE "platform_plan"
            ADD COLUMN IF NOT EXISTS "openRouterApiKeyHash" character varying,
            ADD COLUMN IF NOT EXISTS "openRouterApiKey" character varying
        `)
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            ALTER TABLE "platform_plan"
            DROP COLUMN IF EXISTS "openRouterApiKeyHash",
            DROP COLUMN IF EXISTS "openRouterApiKey"
        `)
    }
}
Copy code
commit a65fac86e3b37aeb7c6dab98b5e6928ae0dc965f (HEAD -> master)
Merge: edb27877cf 868436c3be
Date:   Mon Dec 8 17:02:20 2025 -0500

    Merge remote-tracking branch 'upstream/main'
m
🤔 It's building for me
let me think
b
Now is building for me too, if I add add
Copy code
import { MigrationInterface, QueryRunner } from 'typeorm'

export class AddOpenRouterKeyToPlatformPlan1765109187883 implements MigrationInterface {
    name = 'AddOpenRouterKeyToPlatformPlan1765109187883'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            ALTER TABLE "platform_plan"
            ADD COLUMN IF NOT EXISTS "openRouterApiKeyHash" character varying,
            ADD COLUMN IF NOT EXISTS "openRouterApiKey" character varying
        `)
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`
            ALTER TABLE "platform_plan"
            DROP COLUMN IF EXISTS "openRouterApiKeyHash",
            DROP COLUMN IF EXISTS "openRouterApiKey"
        `)
    }
}
m
🤔