How to mark changes as "fake" in sqitch? #869
-
Hello! I have 4 environments: PROD, STAGE, DEV and a local dev. I've created several changes: core/0001_initial I need
I'm looking for something like Maybe I can manually insert data in Questions:
I would like to have the same sqitch.plan for all environments of the same customer (because of later I will add complexity by adding one or several modules and will generate different sqitch.plans for different customers with different set of module's changes so it may become too complex for me to maintain it) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think PRODsqitch deploy --log-only core/0001_initial
sqitch deploy STAGEsqitch deploy --log-only core/0002_prod_to_stage
sqitch deploy DEVsqitch deploy --log-only core/0003_stage_to_dev
sqitch deploy Depending on your database engine, you might also be able to use variables passed with |
Beta Was this translation helpful? Give feedback.
-
David, thank you for your reply! I like Sqitch (I'm glad I chose it over dbmate) and will definitely try to explore all its features, variables can be very useful |
Beta Was this translation helpful? Give feedback.
I think
--log-only
is what you want. See it under Options. To deploy for each environment:PROD
STAGE
DEV
Depending on your database engine, you might also be able to use variables passed with
--set
ortarget.$target.variables
(via thetarget
command) for each target and use them for conditional execution in your deploy and revert scripts.