Skip to content

Conversation

@NillasKA
Copy link
Contributor

@NillasKA NillasKA commented Nov 5, 2025

Closes #20517

This fixes 2 bugs.

Description

Added a migration that checks if the original media type "Folder" exists, and if it has a list view. If it doesn't, we add one.

The other bugfix is the Last Synced Table not existing. This resulted in the users not being able to login to do the migration. So i added the migration that adds this table, to the pre-migrations.

Thanks @nikolajlauridsen

Testing

To test this, grab a fresh V13 DB and point your V17 project to it.

Before this fix, the media data type called "Folder" wouldnt get a Collection. Now it does.

@NillasKA NillasKA marked this pull request as ready for review November 5, 2025 11:45
Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @NillasKA - this works as expected.

I could replicate the first issue and can verify that this migration fixes it.
The second issue I couldn't replicate myself, but can see that moving this to a pre-migration is going to be necessary if there's a chance that something looks for this table prior to the main upgrade completing.

@NillasKA NillasKA requested a review from AndyButland November 6, 2025 09:02
@AndyButland AndyButland enabled auto-merge (squash) November 6, 2025 09:29
@AndyButland AndyButland merged commit 3ab12e9 into main Nov 6, 2025
26 checks passed
@AndyButland AndyButland deleted the v17/add-migration-to-media-bugfix branch November 6, 2025 09:40
AndyButland pushed a commit that referenced this pull request Nov 6, 2025
…ection & Last Synced Table not existing. (#20743)

* Creating and adding new migration. And fixing another small bug.

* Adding XML Header and renaming to a more clearly defined name
@AndyButland AndyButland changed the title Migrations: Fixes migrations from 13 to 17. Media Folder without Collection & Last Synced Table not existing. Migrations: Ensures Folder media type has a collection view on migration and moves last synched table to a pre-migration Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade v13 to v17: The media folder doesn't list its items

3 participants