Support/KitsuneKBForSuMoMo1Q2011/UserIdMigration: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:
The following are informal userid migration notes ONLY. As always bugzilla will have the real details!
The following are informal userid migration notes ONLY. As always bugzilla will have the real details!


== Notes on SuMoMo tikiwi to SuMoMo Kitsune KB userid migration ==
== Notes on SuMoMo tikiwiki to SuMoMo Kitsune KB userid migration ==


from james:
from james:

Revision as of 22:23, 21 December 2010

Draft-template-image.png THIS PAGE IS A WORKING DRAFT Pencil-emoji U270F-gray.png
The page may be difficult to navigate, and some information on its subject might be incomplete and/or evolving rapidly.
If you have any questions or ideas, please add them as a new topic on the discussion page.

The following are informal userid migration notes ONLY. As always bugzilla will have the real details!

Notes on SuMoMo tikiwiki to SuMoMo Kitsune KB userid migration

from james:

To create a Kitsune/Django user out of a Tiki user, you'll just need to INSERT...SELECT a few columns from the old users_users table into the new auth_user table.

users_users   ->   auth_user
login              username
hash               password
email              email

For the symlink issue I mentioned: When you set up kitsune, none of the kitsune directory will actually be in the document root. You'll want to do an apache Alias to two places:

  • kitsune/media --> /media/ (probably)
  • kitsune/vendor/django/django/contrib/admin/media --> /admin-media/

from paul:

Not too important, but if you want to keep more data, you can also salvage the registration and last login dates:

FROM_UNIXTIME(lastLogin)         ->          last_login
FROM_UNIXTIME(registrationDate)            date_joined 


Within that, you'll want to symlink kitsune/media/uploads to an NFS mount shared by the web servers. (kitsune/media/uploads doesn't exist in version control) The directory should be totally writable by the web server user, as all user-uploaded content will go in there.