discourse/script/import_scripts
JsBergbau a225da4fd3
DEV: Enhance MyLittleForum importer (#34696)
This extends the **MyLittleForum (MLF) importer** with several optional features to make migrations more complete and reliable.

### New Features (optional via environment variables)
 **Uploads import**: supports attachments and images from the MLF uploads table.  
  - Imported uploads are stored with relative links, ensuring they continue to work even if the forum domain changes.  
- **Legacy link rewriting**: absolute links (`index.php?id=...`) are converted into working Discourse permalinks.  
  - Rewritten links are also created as relative links, so they remain valid after a domain move.  
- **Parent category option**: all imported MLF categories can be placed under a chosen existing category.  
- **Upload repair pass / incremental imports:** already-imported posts can be rescanned to fix broken or newly available upload references, allowing the importer to be run again later with a more up-to-date dataset.  
- **Relaxed upload constraints**: temporarily increases file size limits and allows all extensions during the import step.  

### Other Improvements
- Adjusted for MyLittleForum 2.x schema changes (e.g. `user_location` instead of `user_place`).  
- User import now respects already staged users; avoids errors that would otherwise occur when trying to create them again.  
- Improved BBCode → Markdown conversion: lists and quotes are converted more reliably.  
  - Especially improves handling of quotes at the beginning of posts and ensures following text is not mistakenly included in the quoted block.  
- Thread interlinking restored: legacy links between threads are now rewritten to point to the correct Discourse topics.  

### Environment Variables
- `PARENT_CATEGORY` – import all categories under an existing Discourse category.  
- `REWRITE_LINKS` – rewrite absolute legacy links.  
- `UPLOADS_DIR` – path to the MLF uploads directory (flat namespace).  
- `REPAIR_UPLOAD_LINKS` – repair pass for already-imported posts with links.  
- `LOOSEN_UPLOAD_CONSTRAINTS` – relax upload size/extension checks during import and increases file size limits and allows all extensions during the import step.
2025-10-13 21:23:34 +02:00
..
base
mbox
nodebb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
phpbb3 DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
quandora DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
settings
socialcast DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
support
answerbase.rb
answerhub.rb
askbot.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
base.rb DEV: Change default text color from 'FFF' to 'FFFFFF' in import scripts (#34859) 2025-09-24 14:46:09 +02:00
bbpress.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
bespoke_1.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
csv_importer.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
csv_restore_staged_users.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
discuz_x.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
disqus.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
drupal-6.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
drupal.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
drupal_json.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
drupal_qa.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
elgg.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
flarum_import.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
fluxbb.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
friendsmegplus.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
fusionforge.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
getsatisfaction.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
google_groups.rb
higher_logic.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
ipboard.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
ipboard3.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
jforum.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
jive.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
jive_api.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
json_generic.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
kunena.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
kunena3.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
lithium.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
mbox.rb
modx.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
muut.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
mybb.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
mybbru.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
mylittleforum.rb DEV: Enhance MyLittleForum importer (#34696) 2025-10-13 21:23:34 +02:00
nabble.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
ning.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
phorum.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
phpbb3.rb
punbb.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
question2answer.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
sfn.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
simplepress.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
slack.rb
smf1.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
smf2.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
sourceforge.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
stack_overflow.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
telligent.rb
vanilla.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
vanilla_body_parser.rb
vanilla_mysql.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
vbulletin.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
vbulletin3.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
vbulletin5.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
xenforo.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
yahoogroup.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00
yammer.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
zendesk.rb
zendesk_api.rb
zoho.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00