From 35a339b1d3defc1be8387324a601db4889096a22 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 25 Feb 2011 03:32:44 +0000 Subject: tools/migration/*.lua: Rename config to migrator.cfg.lua, add error handling for config and command-line parameters --- tools/migration/migrator.cfg.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 tools/migration/migrator.cfg.lua (limited to 'tools/migration/migrator.cfg.lua') 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"; +} + +]] -- cgit v1.2.3