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

Migration Issue #36

Closed
keyurshah opened this issue Jun 2, 2020 · 11 comments
Closed

Migration Issue #36

keyurshah opened this issue Jun 2, 2020 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@keyurshah
Copy link

Thanks for taking over the plugin!

Unfortunately I upgraded and it seems that we've lost the data. Is there anyway to keep compatibility with previously created fields?

image

@michtio
Copy link
Contributor

michtio commented Jun 3, 2020

@keyurshah, we will look into this as soon as possible! It's currently a bit hectic with everything, but if you lock to 1.2.7 everything should be working as expected, since the last release only has some updated namespacing. So at least you could move on and keep on using it!

@medoingthings
Copy link

Same here. 1.2.8 broke the plugin for my installation. Luckily I noticed that before deploying to production. Going back to 1.2.7 fixed it for the moment.

Thanks for maintaining this plugin!

@keyurshah
Copy link
Author

Thanks, I changed it to 1.2.7 and that worked.

@mattslack
Copy link

I had the same issue, running the following SQL fixed it for me, YMMV:

UPDATE fields SET type = REPLACE(type, 'rias\colourswatches\fields\ColourSwatches', 'percipioglobal\colourswatches\fields\ColourSwatches');

@aaronwaldon
Copy link

Got this working with an SQL snippet similar to @mattslack's:

UPDATE fields SET `type` = 'percipioglobal\\colourswatches\\fields\\ColourSwatches' WHERE `type` = 'rias\\colourswatches\\fields\\ColourSwatches'

@mtnorthrop
Copy link

This is an issue for me as well. Maybe it would help to make the old class names (including the namespace) aliases of the new names, and then create a migration that updates the type column in the database.

@michtio
Copy link
Contributor

michtio commented Jun 29, 2020

@mtnorthrop we will make some time this week to address the update issues!
@aaronwaldon @mattslack feel free to PR.

@michtio
Copy link
Contributor

michtio commented Jul 25, 2020

Updates to the plugins are coming soon. Starting from mid-august we have more capacity to handle these issues! Thank you for your patience! 👍

@mildlygeeky
Copy link

For anyone else who is dead in the water right now after this, dropping this inside your site's migrations folder (or create a migrations folder if you don't have one) will get you up and running: https://gist.github.com/mildlygeeky/50d9d9b8e0a74fc5e343859c508a6e4b

@michtio
Copy link
Contributor

michtio commented Sep 2, 2020

@WeArePercipio @KoeketieneDesign could you update the plugin with the above gist?

Thank you @mildlygeeky for the gist btw!

@jt-systems
Copy link
Contributor

updated in version 1.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants