Skip to content

Conversation

@antgonza
Copy link
Member

Fixing 1067. Note that decided to make it easier by checking if the database exists and the installation is test to overwrite.

@codecov-io
Copy link

codecov-io commented Feb 20, 2018

Codecov Report

Merging #2507 into dev will decrease coverage by 0.08%.
The diff coverage is 10%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #2507      +/-   ##
==========================================
- Coverage   94.63%   94.55%   -0.09%     
==========================================
  Files         160      160              
  Lines       19457    19474      +17     
==========================================
- Hits        18414    18413       -1     
- Misses       1043     1061      +18
Impacted Files Coverage Δ
qiita_db/environment_manager.py 41.46% <10%> (-4.29%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 38ade71...58858ae. Read the comment docs.

Copy link
Contributor

@ElDeveloper ElDeveloper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment.

admin_conn.execute('CREATE DATABASE %s' % qiita_config.database)
except ValueError as error:
# if database exists, ignore if sett
if 'database "qiita_test" already exists' in error.message:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will only work if the database is named qiita_test ... perhaps it should look for:

if 'database "%s" already exists' % qiita_config.database in error.message:
    ...

@antgonza antgonza changed the title WIP: fix #1067 fix #1067 Feb 22, 2018
@wasade wasade merged commit 82c546a into qiita-spots:dev Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants