discourse/script/bulk_import
Gerhard Schlager 4d045bfc61
DEV: Import script should insert more data into user_stats table (#26551)
This SQL tries to insert as much data as possible into the `user_stats` table by either calculating or by approximating stats based on existing. It also fixes an error in the calculation of `reply_count`which mistakenly contained all posts, not just replies.

This change also disables some steps in the `import:ensure_consistency` rake task by setting the `SKIP_USER_STATS` env variable. Otherwise, the rake task will overwrite the calculated data in the `user_stats` table with inaccurate data. I'm not changing or removing the logic from the rake task yet because other bulk import scripts seem to depend on it.
2024-04-11 14:05:21 +02:00
..
base.rb DEV: Improve generic import script (#25972) 2024-03-05 22:23:36 +01:00
discourse_merger.rb DEV: Adding polls, solutions, upload references and other improvements to the Discourse merger script (#23689) 2023-11-16 14:32:53 +01:00
generic_bulk.rb DEV: Import script should insert more data into user_stats table (#26551) 2024-04-11 14:05:21 +02:00
phpbb_postgresql.rb DEV: Apply syntax_tree formatting to script/* 2023-01-09 11:13:22 +00:00
uploads_importer.rb DEV: Improve uploads_importer script (#25971) 2024-03-05 16:27:45 +01:00
uploads_importer.yml DEV: Improve uploads_importer script (#25971) 2024-03-05 16:27:45 +01:00
vanilla.rb DEV: Apply syntax_tree formatting to script/* 2023-01-09 11:13:22 +00:00
vbulletin.rb DEV: Fix various rubocop lints (#24749) 2023-12-06 23:25:00 +01:00
vbulletin5.rb DEV: Fix various rubocop lints (#24749) 2023-12-06 23:25:00 +01:00