Stoobly / stoobly-agent

Record, mock, and test HTTP/HTTPS requests. CLI agent for Stoobly.
Other
6 stars 0 forks source link

Run DB migrations after install or upgrade #76

Closed stoobmmelier closed 1 year ago

stoobmmelier commented 1 year ago

Right now, we don't run db migrations until stoobly-agent run ... command runs and if there are new migrations the user has to manually run them

One idea is to run migrations right after installing or upgrading from pip

Jvlythical commented 1 year ago

Don't think it's currently possible to run a script after pip install. Suggestion would be to use stoobly-agent dev-tools migrate

Jvlythical commented 1 year ago

We can revisit this if this becomes more of an issue. Perhaps we can check if there are pending migrations on commands that depend on local database.