Migration Script from XenForo 1.5 to Flarum v0.1.0-beta.9
This script performs a DB -> DB migration. It will copy all usernames and emails and registration date but will not copy passwords. This means after the migration, all users will need to reset their passwords.
- Create a fresh Flarum installation using the standard instructions.
- Edit
xenforo_connection.php
with your database variables.xenforo_connection.php
must be uploaded for any of the scripts to work. - Upload
xenforo_*
files to your root installation. - The script will truncate the following Flarum tables:
SET FOREIGN_KEY_CHECKS = 0;
truncate discussions;
truncate discussion_tag;
truncate discussion_user;
truncate group_user;
truncate posts;
truncate tags;
truncate tag_user;
truncate users;
SET FOREIGN_KEY_CHECKS = 1;
- Run your chosen scripts.
Name | Description |
---|---|
xfscripts/ | Where individual migration scripts live. |
xenforo_connection.php | Where to edit your database connection variables. |
xenforo_to_flarum.php | Primary migration script for your forum threads and posts. |
xenforo_tags.php | Migrate XenForo tags as secondary tags and associate them with imported discussions. |
xenforo_fof_ignore_users.php | Migrate XenForo ignored users into fof/ignore-user extension. |
- fof/ignore-users Ignore user functionality
Thanks to all who have contributed