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

Possible loss of data after migrating to Craft 5 #573

Open
strandofgenius opened this issue Jan 13, 2025 · 5 comments
Open

Possible loss of data after migrating to Craft 5 #573

strandofgenius opened this issue Jan 13, 2025 · 5 comments

Comments

@strandofgenius
Copy link

Describe the bug

I was upgrading from Craft CMS 4.13.7 -> 5.5.9. And ran php craft super-table/migrate which shows that it successfully converted the fields from super table to matrix. But when I view the CMS where there should be the nested matrix blocks, the content is missing. Any thoughts here?

Steps to reproduce

  1. Create Matrix block with Super Table containing some fields (we had an image, ckeditor, hyper)
  2. Run through upgrade process from Craft 4.13.7 -> 5.5.9
  3. run php craft super-table/migrate

Craft CMS version

4.13.7 -> 5.5.9

Plugin version

3.0.15 -> 4.0.2

Multi-site?

No response

Additional context

No response

@strandofgenius
Copy link
Author

strandofgenius commented Jan 13, 2025

I can see a table that was once the content for the Super Table field. I do not see any of that content in craft_elements_sites database table. I was under the impression it was safe to remove the plugin after I ran the php craft super-table/migrate command, but now I am thinking not since m240115_000000_craft5 migration didn't happen.

I did try and require super table again, and it said I had m240115_000000_craft5 as a pending migration, but the output just said it dropped all the tables. Was that supposed to migrate the content as nested matrix blocks?

@engram-design
Copy link
Member

Out of interest, what's the state of content before you run the super-table/migrate command? Note that's really only a cleanup command to fully detach from Super Table, and not required to have content migrated properly.

Nested content should indeed be working, and from the sounds of things, the migration isn't being properly applied, which is where the root of this issue is.

I don't suppose you'd be up for sharing your database in Craft 4? If so, send to [email protected] and we can take a look.

@strandofgenius
Copy link
Author

@engram-design just sent over the email. I forgot to check if the content was there before I ran the command. But like you mentioned must be more related to the actual migration.

@engram-design
Copy link
Member

Appreciate it! Will send through some follow up points via email

@portedison
Copy link

Maybe related.? - #569

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

No branches or pull requests

3 participants