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

check_version.sql- insert ignore #243

Open
federico-razzoli opened this issue Aug 15, 2016 · 0 comments
Open

check_version.sql- insert ignore #243

federico-razzoli opened this issue Aug 15, 2016 · 0 comments

Comments

@federico-razzoli
Copy link

federico-razzoli commented Aug 15, 2016

In check_version.sql, why not to use a simple INSERT IGNORE instead of this?

Insert if not already

INSERT INTO schema_versions (version)
SELECT 0 FROM DUAL
WHERE NOT EXISTS (SELECT * FROM schema_versions);

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

No branches or pull requests

1 participant