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 db3d334 commit f8d3fceCopy full SHA for f8d3fce
qiita_db/support_files/patches/python_patches/18.py
@@ -18,10 +18,13 @@
18
# we know it has at least one of the columns, so drop both, and ignore
19
# error if dropping non-existant column
20
try:
21
- conn_handler.execute("ALTER TABLE qiita.%s DROP COLUMN study_id" % t)
+ conn_handler.execute("ALTER TABLE qiita.%s RENAME COLUMN study_id TO "
22
+ "study_id_template" % t)
23
except PostgresError:
24
pass
25
- conn_handler.execute("ALTER TABLE qiita.%s DROP COLUMN processed_data_id" % t)
26
+ conn_handler.execute("ALTER TABLE qiita.%s RENAME COLUMN "
27
+ "processed_data_id TO "
28
+ "processed_data_id_template" % t)
29
30
0 commit comments