We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d96e3a commit 99e90a5Copy full SHA for 99e90a5
qiita_db/support_files/patches/31.sql
@@ -0,0 +1,3 @@
1
+-- August 24, 2015
2
+-- Delete all occurrences of '..' in the base_data_dir entry
3
+SELECT 42;
qiita_db/support_files/patches/python_patches/31.py
@@ -0,0 +1,6 @@
+from os.path import realpath
+from qiita_db.sql_connection import SQLConnectionHandler
+
4
+conn = SQLConnectionHandler()
5
+path = conn.execute_fetchone('SELECT base_data_dir FROM settings')[0]
6
+conn.execute("UPDATE settings SET base_data_dir = %s", (realpath(path),))
0 commit comments