Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue migrating project_milestone from 14.0 to 15.0 #1267

Open
remytms opened this issue Apr 17, 2024 · 3 comments
Open

Issue migrating project_milestone from 14.0 to 15.0 #1267

remytms opened this issue Apr 17, 2024 · 3 comments
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@remytms
Copy link

remytms commented Apr 17, 2024

I'm migrating a database from 14.0 to 16.0, and I face issue with migration of project_milestone between 14.0 and 15.0.

Module

project_milestone

Describe the bug

The migration script fails to run when performing an update with OpenUpgrade in 15.0 on a database with project milestone installed.

To Reproduce

Affected versions: 15.0

Steps to reproduce the behavior:

  1. create a database with project_milestone installed in 14.0
  2. run OpenUpgrade in 15.0 on this database
  3. the upgrade fails.

Expected behavior
Migration script of project_milestone in 15.0 should not fail and block migration.

Additional context
The errors comes from the fact that :

  • project_task_milestone is already existing in the database event when not installed, so renaming the module fails.
  • the field deadline is already existing because module project has already been updated before project_milestone, so renaming fails.

I can not figure out what is the case where this migration script will work.

I suggest the following solution:

In OpenUpgrade 15.0, use apriori.py file to rename module project_milestone into project_task_milestone and add the column rename in the migration script of the project module so that the rename happen before the deadline columns creation by the update of the project module.

Remove the empty project_milestone module from 15.0 branch.

What do you think ? I will try such a solution, and come back with feedback.

@remytms
Copy link
Author

remytms commented Apr 17, 2024

I've done some tests.

I added this pr to OpenUpgrade to cover the change between 14.0 to 15.0. And I added this pr to cover change between 15.0 to 16.0.

It works well except that for the time being, stages need to be activated manually in project configuration.

@remytms
Copy link
Author

remytms commented Apr 17, 2024

@patrickrwilson You may be interested in this issue as maintainer of project_milestone.

Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

1 participant