musonza / chat

A Laravel chat package. You can use this package to create a chat/messaging Laravel application.
MIT License
1.13k stars 311 forks source link

Upgrade 3.3 to 4.4 #252

Open Gicminos opened 4 years ago

Gicminos commented 4 years ago

Hi all,

I am trying to update this package from 3.3 to 4.4, realizing that it will break everything.

First of all, the main reason for the willing to update it is because it was required for me to upgrade Laravel 5 to 7.

As I see this breaks a lot, looking around the repo I have seen that somebody was talking about an update script, but it looks like it hasn't been realized.

Is there any suggestions for me before start digging into it myself or something I should be aware of?

Thank you.

nikhilinfynno commented 3 years ago

same issue I am facing. I am updating laravel 5.4 to laravel 7.x and I am going step by step like 5.4 to 5.5 then 5.5 to 5.6 so on. I found that the table name of chat conversations and all prefix has changed. so I am facing the issue of not found a table, how can I migrate my old table data into new to override the model?

Gicminos commented 3 years ago

@nikhilinfynno for my project I just forked this package and kept supporting the old structure on newer versions. I am happy to send a PR here if the maintainers are interested.

nikhilinfynno commented 3 years ago

@Gicminos how did you kept the old structure on newer versions. because the newer version has so many changes and I have to maintain my old data as well.

Gicminos commented 3 years ago

I just bumped the dependencies on composer, made it compatible with the new Laravel and kept anything as 3.3. I periodically update the dependencies and if required I will change the code when necessary.

Happy to PR from here: https://github.com/Gicminos/chat