From 43b602e0cf6e01b9db7b750e6e2319b7de9b9f52 Mon Sep 17 00:00:00 2001
From: Adriaan Renting <renting@astron.nl>
Date: Tue, 20 Jun 2017 12:22:43 +0000
Subject: [PATCH] Task #10981: Added script to read and process MoM DB dump

---
 support/tools/MoM/process_mom_sql.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/support/tools/MoM/process_mom_sql.py b/support/tools/MoM/process_mom_sql.py
index 2e979385589..798668db295 100755
--- a/support/tools/MoM/process_mom_sql.py
+++ b/support/tools/MoM/process_mom_sql.py
@@ -1,5 +1,12 @@
 #!/usr/bin/python
 
+# This script reads infile and creates sql files for each part in the infile in the
+# outdir directory. It also replaces references to the indatabase with references
+# to the outdatabase.
+# It creates a file for each view and table and trigger that is defined in the infile.
+# It creates separate files for filling the tables.
+# The script assumes the infile is a dump of a MySQL MoM 3 database.
+
 infile = "backup_lofar_mom3.sql.1"
 indatabase = "lofar_mom3"
 outdatabase = "lofar_mom_test_rt_trigger"
-- 
GitLab