diff options
author | Matthew Wild <mwild1@gmail.com> | 2011-02-25 03:32:44 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2011-02-25 03:32:44 +0000 |
commit | 35a339b1d3defc1be8387324a601db4889096a22 (patch) | |
tree | 086fefd4ab54c5d19195a980f01100737e93c8ff /tools/migration/migrator.cfg.lua | |
parent | 7c054e5160dc6e2a42ee8e66b9031f57c634421f (diff) | |
download | prosody-35a339b1d3defc1be8387324a601db4889096a22.tar.gz prosody-35a339b1d3defc1be8387324a601db4889096a22.zip |
tools/migration/*.lua: Rename config to migrator.cfg.lua, add error handling for config and command-line parameters
Diffstat (limited to 'tools/migration/migrator.cfg.lua')
-rw-r--r-- | tools/migration/migrator.cfg.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/migration/migrator.cfg.lua b/tools/migration/migrator.cfg.lua new file mode 100644 index 00000000..fa37f2a3 --- /dev/null +++ b/tools/migration/migrator.cfg.lua @@ -0,0 +1,26 @@ +local data_path = "../../data"; + +input { + type = "prosody_files"; + path = data_path; +} + +output { + type = "prosody_sql"; + driver = "SQLite3"; + database = data_path.."/prosody.sqlite"; +} + +--[[ + +input { + type = "prosody_files"; + path = data_path; +} +output { + type = "prosody_sql"; + driver = "SQLite3"; + database = data_path.."/prosody.sqlite"; +} + +]] |