Multi-environment Database Custom Script Variables

Hello,

I am build a CICD pipeline, I am wondering if the custom database script for lazy migration could supply variables referenced from config files?

Basically, the support for multi-environment.

Example: dev config would reference a dev API endpoint on the script, whereas staging and prod would also have a different endpoints as well.

I can’t seem to find a topic related to this matter.

Help is appreciated. Thank you

Hi @denmark.daya,

Inside of the Custom Database tab of your database connection you can enable the Context object in database scripts setting which will allow you to pass in additional information from your config file.

But for your use case I would highly recommend you to use different tenants for each environment you have:

If you have any other questions for us feel free to ask.

Have a good one,
Vlad

1 Like