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

confirm migration feasibility #1023

Merged
merged 1 commit into from
Jun 14, 2022
Merged

Conversation

ArtificialOwl
Copy link
Member

There is a current minor issue making the migration process to run even if there is nothing to migrate (fresh instance).
The full migration process will reset memberships and recreate them, which is useless on a fresh instance.
On old instance (pre-22 with Circles already installed), Because the old tables were not drop after the migration, a negative use-case could be trigger:

  • using Circles pre-22,
  • migrating to nc22,
  • reset the Circles app, using it to create your group of users,
  • next upgrade, migration will try to migrate old data pre-22.

This fix will check that new table are not used and that the old table exists.

The drop of old tables will be done in 25

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
@codecov-commenter
Copy link

Codecov Report

Merging #1023 (3c27280) into master (782e4c8) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##             master   #1023      +/-   ##
===========================================
- Coverage      0.69%   0.69%   -0.01%     
- Complexity     5739    5741       +2     
===========================================
  Files           291     291              
  Lines         19859   19871      +12     
===========================================
  Hits            139     139              
- Misses        19720   19732      +12     
Impacted Files Coverage Δ
lib/Service/MigrationService.php 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 782e4c8...3c27280. Read the comment docs.

@blizzz blizzz added this to the Nextcloud 25 milestone Apr 21, 2022
@ArtificialOwl
Copy link
Member Author

/backport to stable24

@ArtificialOwl
Copy link
Member Author

/backport to stable23

@ArtificialOwl
Copy link
Member Author

/backport to stable22

@ArtificialOwl
Copy link
Member Author

/backport to stable24

@backportbot-nextcloud
Copy link

The backport to stable24 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants