Skip to content

Start improving search #988

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
rename instead of drop
  • Loading branch information
squirrelo committed Mar 18, 2015
commit f8d3fceecbc4f74707e51d27baab342ec4457677
7 changes: 5 additions & 2 deletions qiita_db/support_files/patches/python_patches/18.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
# we know it has at least one of the columns, so drop both, and ignore
# error if dropping non-existant column
try:
conn_handler.execute("ALTER TABLE qiita.%s DROP COLUMN study_id" % t)
conn_handler.execute("ALTER TABLE qiita.%s RENAME COLUMN study_id TO "
"study_id_template" % t)
except PostgresError:
pass
try:
conn_handler.execute("ALTER TABLE qiita.%s DROP COLUMN processed_data_id" % t)
conn_handler.execute("ALTER TABLE qiita.%s RENAME COLUMN "
"processed_data_id TO "
"processed_data_id_template" % t)
except PostgresError:
pass