Closed sudermanjr closed 5 years ago
Strange, while testing this it does the updating of the hook properly in some places and not in others.
I rebased your branch so it got the pipeline fixes that we were working on yesterday.
@ejether Do I need to change versions on this?
GIT master: Already up to date.
2019-03-11 09:54:22 root[67405] INFO Pentagon Version: 3.1.0
2019-03-11 09:54:22 root[67405] INFO Starting Repository Version: 2.7.3
2019-03-11 09:54:22 root[67405] INFO No Migrations to run.
2019-03-11 09:54:22 root[67405] INFO Installed Version > Repository Version.
2019-03-11 09:54:22 root[67405] INFO Use `pentagon migrate --yes` to update Repository
https://github.com/reactiveops/pentagon/blob/master/pentagon/migration/__init__.py#L60
Yes, I think I led you astray. The migration name should be pentagon/migration/migrations/migration_2_7_3.py
. The migration finding check is picky like that.
That did the trick. If tests pass I'll ship this.
Adds the hook if it does not exist. Modifies it to newest if it is the old one.