aboutsummaryrefslogtreecommitdiffstats
path: root/tools/migration
Commit message (Collapse)AuthorAgeFilesLines
* migrator: Trick net.server into thinking the config is loadedKim Alvefur2021-07-291-0/+1
| | | | Fixes "Loading outside Prosody or Prosody not yet initialized"
* migrator: Customise startup sequence to fix #1673 (Thanks acidsys)Kim Alvefur2021-07-291-2/+19
| | | | | | | | | | | | Diverge from util.startup.prosodyctl() in order to skip unneeded behavior, such as loading the *Prosody* config file, which we do not need here, based on the `--config` flag which should point at the migrator config file instead. Notably removed: * read_config() since this loads the Prosody config * check_unwriteable() which checks logfiles specified in the Prosody config, so not relevant * make_dummy_hosts() but the migrator sets up its own hosts during migration
* migrator: Don't create unused directoryKim Alvefur2020-04-191-1/+0
| | | | I guess this contained the old per-store migrators
* migrator: Inject data- and plugin paths during buildKim Alvefur2020-04-191-1/+3
| | | | Same way as with the prosody and prosodyctl executables
* migrator: Add support for archives (fixes #651)Kim Alvefur2019-05-051-0/+6
|
* migrator: Rewrite to use storage modulesKim Alvefur2019-05-056-439/+142
| | | | | This allows migrating to and from any storage module that supports the right methods. Based on experimental mod_migrate work.
* Merge 0.10->trunkKim Alvefur2017-04-101-6/+6
|\
| * SQL: Use standard quotes for columns and other identifiers, rewrite to grave ↵Kim Alvefur2017-04-101-6/+6
| | | | | | | | accents for MySQL only (fixes #885)
* | Merge 0.10->trunkKim Alvefur2017-04-091-1/+1
|\|
| * migration/prosody_sql: Commit transaction when all items have been processedKim Alvefur2017-04-081-1/+1
| |
* | Merge 0.10->trunkKim Alvefur2017-04-082-80/+63
|\|
| * migrator/prosody_sql: Abort and demand database be upgraded if it needs to ↵Kim Alvefur2017-04-071-1/+32
| | | | | | | | be (#635)
| * migrator.prosody_sql: Switch to util.sql (#635)Kim Alvefur2017-04-071-73/+30
| |
| * migrator: Remove broken distinction between a load error or a missing ↵Kim Alvefur2017-04-071-7/+2
| | | | | | | | storage handler (worked with module()?)
* | Merge 0.10->trunkKim Alvefur2017-02-151-8/+7
|\|
| * migrator: Fix missing wordKim Alvefur2017-02-151-1/+1
| |
| * migrator: Fix argument parsingKim Alvefur2017-02-151-5/+4
| |
| * migrator: Unexpand whitespaceKim Alvefur2017-02-151-2/+2
| |
* | Merge 0.10->trunkKim Alvefur2017-02-045-25/+23
|\|
| * tools/migration/migrator/*: Remove use of module()Kim Alvefur2017-02-024-15/+22
| |
| * migrator: Remove wrapper around envloadfile since envloadfile does the right ↵Kim Alvefur2017-02-021-10/+1
| | | | | | | | thing in a compatible way
* | Update every link to the documentation to use HTTPSEmmanuel Gil Peyrot2016-04-161-1/+1
|/
* Merge 0.9->0.10Kim Alvefur2015-02-211-3/+3
|\
| * configure, Makefile: Add --libdir option to ./configure, allowing you to ↵Matthew Wild2015-02-201-3/+3
| | | | | | | | override the $PREFIX/lib/ default. Fixes #470.
* | Merge 0.9->0.10Matthew Wild2014-01-121-4/+8
|\|
| * tools/migration/migrator/prosody_files: Fix undefined global access of ↵Waqas Hussain2014-01-031-4/+8
| | | | | | | | ‘error’, print the actual error message and correct file path in the error message when we fail to load a file, skip broken files instead of failing migration.
* | Remove all trailing whitespaceFlorian Zeitz2013-08-092-2/+2
|/
* tools/migration/Makefile: Apply Lua runtime override (see 53f741a5a73a)Kim Alvefur2013-03-311-1/+2
|
* tools/migration/migrator/jabberd14: Use util.xml.Waqas Hussain2012-12-031-50/+1
|
* Eliminate direct setfenv usageFlorian Zeitz2012-06-082-14/+11
|
* migrator/jabberd14: Minor refactoring.Waqas Hussain2011-12-091-9/+6
|
* migrator/jabberd14: Support for reading jabberd14 spool files.Waqas Hussain2011-11-191-0/+194
|
* migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databasesMatthew Wild2011-06-051-1/+1
|
* migrator/prosody_sql.lua: Create (and upgrade) MySQL tables to use ↵Matthew Wild2011-06-031-0/+18
| | | | MEDIUMTEXT for the 'value' column to avoid truncation
* migrator/prosody_files: Don't choke on empty data stores for a user (thanks ↵Matthew Wild2011-06-021-1/+6
| | | | @eoranged)
* tools/migration/migrator/prosody_sql.lua: Fix compatibility with PostgreSQL ↵Matthew Wild2011-04-111-1/+5
| | | | (thanks Timo)
* tools/migration/migrator/prosody_files.lua: Fix for previous commitvault/0.8.00.8.0Matthew Wild2011-04-051-1/+2
|
* tools/migration/prosody-migrator.lua: Add messages to show when migration is ↵Matthew Wild2011-04-051-1/+2
| | | | in progress
* tools/migration: Support for ~/ in pathsMatthew Wild2011-04-052-1/+10
|
* tools/migration/prosody-migrator.lua: Refactor store handler loading to ↵Matthew Wild2011-04-051-13/+22
| | | | report errors they throw
* tools/migration/migrator/prosody_sql: Throw a friendlier error when LuaDBI ↵Matthew Wild2011-04-051-1/+5
| | | | is not found
* tools/migration: Rename main.lua -> prosody-migrator.lua and update the MakefileMatthew Wild2011-03-212-3/+3
|
* tools/migration/Makefile: Don't install main.lua (we already install it as ↵Matthew Wild2011-03-031-2/+2
| | | | prosody-migrator) (thanks Enrico)
* tools/migration/*: Numerous changes and restructuring, and the addition of a ↵Matthew Wild2011-02-265-9/+56
| | | | Makefile
* tools/migration/*.lua: Rename config to migrator.cfg.lua, add error handling ↵Matthew Wild2011-02-252-8/+69
| | | | for config and command-line parameters
* tools/migration/main.lua: Add command-line parsing, including ↵Matthew Wild2011-02-251-11/+29
| | | | --config=CONFIG_FILE, and the ability to specify to/from stores to migrate
* tools/migration/config.lua: Minor fixes for more sensible defaultsMatthew Wild2011-02-251-10/+10
|
* tools/migration/*.lua: Convert to unix line endingsMatthew Wild2011-02-235-416/+416
|
* tools/migration/*: Initial commit of a new migration tool. Currently ↵Waqas Hussain2011-02-235-0/+416
supports Prosody files and Prosody SQL as input and output.