Skip to content
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

fix: Make sql works for both mysql and postgre #1912

Merged
merged 3 commits into from
Jan 7, 2020

Conversation

whynowy
Copy link
Member

@whynowy whynowy commented Jan 6, 2020

Mysql doesn't support to create an index with if not exists.

@whynowy whynowy requested a review from alexec January 6, 2020 23:51
)`,
`create unique index if not exists idx_name on ` + cfg.tableName + ` (name)`,
Copy link
Contributor

Choose a reason for hiding this comment

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

rather than modify the statement above - which will require manual migration for current users - can you just remove the if not exists and run that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you mean we already have public releases including database schema?

Copy link
Member Author

Choose a reason for hiding this comment

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

@alexec - done.

@codecov
Copy link

codecov bot commented Jan 7, 2020

Codecov Report

❗ No coverage uploaded for pull request base (apiserverimpl@de9f505). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             apiserverimpl   #1912   +/-   ##
===============================================
  Coverage                 ?   9.43%           
===============================================
  Files                    ?      50           
  Lines                    ?   30697           
  Branches                 ?       0           
===============================================
  Hits                     ?    2897           
  Misses                   ?   27417           
  Partials                 ?     383

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 de9f505...2f65f37. Read the comment docs.

@alexec
Copy link
Contributor

alexec commented Jan 7, 2020

Merging as small change.

@alexec alexec merged commit 3e3f900 into argoproj:apiserverimpl Jan 7, 2020
@whynowy whynowy deleted the schema-err branch January 7, 2020 21:17
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.

2 participants