You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making a patch on a migration script, we have to rename the migration folder with the same name as the bumped revision. It could be automated.
I think that it could be an option of the ocabot. like bump-migration. the patch / minor / nobump / major is a choice of the people that are merging. (maintainers) not a choice of the developper.
I don't think migrations scripts have to be idempotants.
It should allow to run migration scripts and do not generate conflicts on github/oca pull requests.
With my proposal we may break the workflow when someone checkout pr - branches instead of stable.
One should adapt his tooling to manage modules containing a migrations/0.0.0 by doing the kind of steps (increment manifest and name the migration directory with the good version) to apply after the checkout instead of in the PR.
I didn't understood your proposal i think.
On the meantime, i'm not sure to be agree with what i wrote 3 years ago.
Let's talk about that topic in the next oca days.
Activity
sbidoul commentedon Nov 3, 2020
Sounds interesting.
hparfr commentedon Mar 28, 2024
Hi,
I think we can achieve it if in the merge requests we:
0.0.0/hparfr commentedon Mar 29, 2024
FYI @sebastienbeau
legalsylvain commentedon Mar 29, 2024
That can not be asked to developpers. Sometimes, it is not possible to write idempotens scripts.
hparfr commentedon Mar 30, 2024
I don't think migrations scripts have to be idempotants.
It should allow to run migration scripts and do not generate conflicts on github/oca pull requests.
With my proposal we may break the workflow when someone checkout pr - branches instead of stable.
One should adapt his tooling to manage modules containing a migrations/0.0.0 by doing the kind of steps (increment manifest and name the migration directory with the good version) to apply after the checkout instead of in the PR.
legalsylvain commentedon Mar 30, 2024
I didn't understood your proposal i think.
On the meantime, i'm not sure to be agree with what i wrote 3 years ago.
Let's talk about that topic in the next oca days.