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

QUESTION -> migration from rtconner/laravel-tagging #70

Closed
schonhose opened this issue Oct 16, 2017 · 4 comments
Closed

QUESTION -> migration from rtconner/laravel-tagging #70

schonhose opened this issue Oct 16, 2017 · 4 comments

Comments

@schonhose
Copy link

Is there an easy way to migrate my tags from the package rtconner/laravel-tagging to this package? The author of the other package has abandoned the package and composer suggests using the package from Spatie.

The only problem is the migration of the existing tags. Before I start writing a migration command I would like to know if someone has already written such a feature.

@cmosguy
Copy link

cmosguy commented Oct 19, 2017

@schonhose i don't know the answer to this question, but I have a quick question for you? Why are you migrating over to this package? I am asking because I am researching an optimal tagging package for my project, and was curious what is your motivation?

@freekmurze
Copy link
Member

@cmosguy rtconner/laravel-tagging isn't maintained anymore.

@schonhose
Copy link
Author

The interesting thing I have right now is that I am running Laravel 5.1. The package from Spatie requires a higher version. This makes the migration somewhat more interesting, The way I am approaching it now is to make a copy of my database, a fresh installation of Laravel 5.5, install both packages and create a loop that gets the tags from rtconner/laravel-tagging and use the methods from spatie/laravel-tags to insert it into the new structure. Tedious, but doable.

Any other suggestions are welcome!

@AlexVanderbist
Copy link
Member

The best way to go about this is probably to write the db migration you mentioned. Schema's don't look too different (apart from tag groups).

Feel free to share any code you've written to do the migration as well! 👍

Closing this for now.

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

4 participants