# How we can deploy the same scripts in multiple database

**URL:** <https://forum.liquibase.org/t/how-we-can-deploy-the-same-scripts-in-multiple-database/5232>\
**Category:** Liquibase Development\
**Created:** [March 24, 2021, 8:16am UTC](https://forum.liquibase.org/t/how-we-can-deploy-the-same-scripts-in-multiple-database/5232 "2021-03-24T08:16:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madhawatul](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Madhawatul](https://forum.liquibase.org/u/Madhawatul)\
**Post date:** [March 24, 2021, 8:16am UTC](https://forum.liquibase.org/t/how-we-can-deploy-the-same-scripts-in-multiple-database/5232/1 "2021-03-24T08:16:21Z")

</div>

Can anyone help me how we can deploy our changes in multiple databases (like in Dev environment and in UAT Environment) by using single Liquibase command.

---

<div class="post-metadata">

**Author:** ![rakhi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/rakhi/32/288_2.png) [@rakhi](https://forum.liquibase.org/u/rakhi)\
**Post date:** [March 24, 2021, 9:15am UTC](https://forum.liquibase.org/t/how-we-can-deploy-the-same-scripts-in-multiple-database/5232/2 "2021-03-24T09:15:59Z")

</div>

Hi @Madhawatul

I’m not sure but are you looking for something like this : [set up Liquibase with an Existing Project and Multiple Environments](https://docs.liquibase.com/workflows/liquibase-community/existing-project.html)

Here the change would only be in the contexts. Either we could provide same contexts for both environments or not provide one at all. I haven’t tried out this, but thought of sharing this link with you.

Thanks,  
Rakhi Agrawal

---

<div class="post-metadata">

**Author:** ![scastrianni](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@scastrianni](https://forum.liquibase.org/u/scastrianni)\
**Post date:** [March 22, 2024, 7:16pm UTC](https://forum.liquibase.org/t/how-we-can-deploy-the-same-scripts-in-multiple-database/5232/3 "2024-03-22T19:16:04Z")

</div>

I think I am missing something. If I have 3 environments: dev, stage, and prod, how do I configure my properties file? The liquibase properties file seems like it only supports 2 URLs, one for source and one for target. What would be considered the source url and where do the dev, stage, and prod URLs go?

---

<div class="post-metadata">

**Author:** ![daryldoak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/daryldoak/32/764_2.png) [@daryldoak](https://forum.liquibase.org/u/daryldoak)\
**Post date:** [March 27, 2024, 6:57pm UTC](https://forum.liquibase.org/t/how-we-can-deploy-the-same-scripts-in-multiple-database/5232/4 "2024-03-27T18:57:11Z")

</div>

Correct, if you have 3 URL then you can’t put URL into a common properties file.

I see 2 good options (there are probably other ways also):

1. You can put all of the non-changing parameters into a common properties file, and then provide the appropriate URL for the environment at runtime.

2. You can create 3 distinct properties file, one per environment.
