You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an outsider learning the system, the prefix helps to differentiate Rocket.Chat's collections from non-Rocket.Chat collections. I like rocketchat_rooms format.
Thanks @rodrigok. I saw the migrations, but I think this is a special case. Meteor (from what I know) doesn't support Mongo's renameCollection or drop collection. So we either have to:
Instruct the user to manually run renameCollection from the shell before starting meteor.
or
Rename the collections in collections.coffee. Create a migration that accesses the old collections and migrates the data to the new collections.
The first option is clean, but requires user intervention. The second option is user-friendly, but leaves the old collections and the user has to manually drop the old collections.
A Google search suggested using a Node package that provides shell access, but only works when NOT using the embedded MongoDB.
I'm relatively new to Meteor so please excuse me if I missed something.
I have merged this PR, but I think we should also change the names of "settings" and "migrations" collections. Also, rename "userSessions" to "user_sessions".
Hi @marceloschmidt. Sorry, I missed those collections. I noticed you added the "in Progress" label. Does that mean you're taking over and renaming the settings, migrations, and userSessions collections?
Thanks for the work @rwakida, you did a great job. @marceloschmidt just labeled as in progress so we know that is half done. Having said, I am not sure you'd have access to control the name of all those collection from our repository. Some are 3rd party packages, other are made by us, but in other repositories... you can give it a try and let us know.
@engelgabriel@marceloschmidt I did a quick search and found that settings and oembed_cache are under Rocket.Chat control. I added both to the v9 migration and created a new pull request.
Activity
rwakida commentedon Jul 9, 2015
Questions:
sampaiodiego commentedon Jul 9, 2015
I was thinking in to use a prefic like "rocket" for collection names. should be one of these:
I think using a prefix is the best for an existing database with other collections.
What do you others think?
engelgabriel commentedon Jul 10, 2015
I think we should either lose the prefix all together.. and use
or
rwakida commentedon Jul 11, 2015
As an outsider learning the system, the prefix helps to differentiate Rocket.Chat's collections from non-Rocket.Chat collections. I like rocketchat_rooms format.
What about existing data migration?
rodrigok commentedon Jul 11, 2015
I agree with @rwakida.
About the data migration we already use one lib to do migrations, you can see here (https://github.com/RocketChat/Rocket.Chat/tree/master/server/startup/migrations)
rwakida commentedon Jul 11, 2015
Thanks @rodrigok. I saw the migrations, but I think this is a special case. Meteor (from what I know) doesn't support Mongo's renameCollection or drop collection. So we either have to:
or
The first option is clean, but requires user intervention. The second option is user-friendly, but leaves the old collections and the user has to manually drop the old collections.
A Google search suggested using a Node package that provides shell access, but only works when NOT using the embedded MongoDB.
I'm relatively new to Meteor so please excuse me if I missed something.
sampaiodiego commentedon Jul 11, 2015
@rodrigok but using meteor could be painful since you can't rename collections
1 remaining item
Fix RocketChat#12 Standardize collection names to rocketchat_XXX (fro…
Merge pull request #313 from rwakida/feature/12
marceloschmidt commentedon Jul 17, 2015
I have merged this PR, but I think we should also change the names of "settings" and "migrations" collections. Also, rename "userSessions" to "user_sessions".
rwakida commentedon Jul 17, 2015
Hi @marceloschmidt. Sorry, I missed those collections. I noticed you added the "in Progress" label. Does that mean you're taking over and renaming the settings, migrations, and userSessions collections?
engelgabriel commentedon Jul 18, 2015
Thanks for the work @rwakida, you did a great job. @marceloschmidt just labeled as in progress so we know that is half done. Having said, I am not sure you'd have access to control the name of all those collection from our repository. Some are 3rd party packages, other are made by us, but in other repositories... you can give it a try and let us know.
rwakida commentedon Jul 18, 2015
Thanks and great job on Rocket.Chat!
@engelgabriel @marceloschmidt I did a quick search and found that settings and oembed_cache are under Rocket.Chat control. I added both to the v9 migration and created a new pull request.
Merge pull request #317 from rwakida/feature/12
marceloschmidt commentedon Jul 19, 2015
Thank you very much @rwakida
Update SideNav UI (RocketChat#12)
Merge pull request RocketChat#12 from RocketChat/feat-tray
Merge pull request #12 from RocketChat/develop