# Tracking scripts changes for first deployment without executing them

**URL:** <https://forum.liquibase.org/t/tracking-scripts-changes-for-first-deployment-without-executing-them/7696>\
**Category:** Uncategorized\
**Created:** [January 17, 2023, 6:45pm UTC](https://forum.liquibase.org/t/tracking-scripts-changes-for-first-deployment-without-executing-them/7696 "2023-01-17T18:45:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SreekanthReddyU](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@SreekanthReddyU](https://forum.liquibase.org/u/SreekanthReddyU)\
**Post date:** [January 17, 2023, 6:45pm UTC](https://forum.liquibase.org/t/tracking-scripts-changes-for-first-deployment-without-executing-them/7696/1 "2023-01-17T18:45:18Z")

</div>

Say I have 10 scripts but 8 of them are already upto date in the datebase and we just started using Liquibase. For the first deployment I want only those remaining 2 scripts to execute, but it should start tracking all 10 in the changelog table and should be able to autodeploy those 8 scripts from the second release if they are altered.

---

<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:** [January 17, 2023, 10:43pm UTC](https://forum.liquibase.org/t/tracking-scripts-changes-for-first-deployment-without-executing-them/7696/2 "2023-01-17T22:43:22Z")

</div>

These are the two options I would recommend (in order of preference):

1. With just the first 8 changesets in your changelogs, run the “changelog-sync” command . This will record those first 8 changesets in the databasechangelog table as EXECUTED, making it look like Liquibase executed them. Then add the 2 new changesets and run “update” to apply those 2 changesets.

2. With all 10 changesets in your changelogs, run the " mark-next-changeset-ran" command 8 times. This will record those first 8 changesets in the databasechangelog table as EXECUTED, making it look like Liquibase executed them. Then run “update” to apply the final 2 changesets.

---

<div class="post-metadata">

**Author:** ![SreekanthReddyU](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@SreekanthReddyU](https://forum.liquibase.org/u/SreekanthReddyU)\
**Post date:** [January 20, 2023, 3:40pm UTC](https://forum.liquibase.org/t/tracking-scripts-changes-for-first-deployment-without-executing-them/7696/3 "2023-01-20T15:40:03Z")

</div>

Thank you @daryldoak , that is really helpful.
