Closed ClaytonJY closed 1 year ago
The plan file should be in the top directory. The configuration file should be in the current directory. The general idea is that if you have your change scripts in a subdirectory, it's because you have other stuff in the root (e.g., src
).
I would expect, however, that when you bundle, the layout would leave the plan file in the same directory as the config file, since that's where you have it specified in the configuration file. That's not the case?
I've got a project whose
sqitch.conf
starts like this:Accordingly, I have a
sqitch.plan
in the same directory assqitch.conf
, while all migrations are insidesqitch-migrations/
This all seems to work just fine, until I run
sqitch bundle
. Then inside mybundle/
folder I seesqitch.plan
is atbundle/sqitch-migrations/sqitch.plan
, instead ofbundle/sqitch.plan
. Attempting to do anything withsqitch
from withinbundle/
thus yields the errorPlan file sqitch.plan does not exist
.This isn't a huge deal, since if I put
sqitch.plan
insidesqitch-migrations/
and update the line insqitch.conf
appropriately, it all works just fine, but it does seem like unexpected behavior.