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

Migration issue #48

Open
nouhouari opened this issue Oct 28, 2018 · 2 comments
Open

Migration issue #48

nouhouari opened this issue Oct 28, 2018 · 2 comments

Comments

@nouhouari
Copy link

nouhouari commented Oct 28, 2018

Hi,
I'm facing some issues when trying to install and run locally.
I've created the database harmony_db as suggested and change the user/password in the configuration files.

When I run
DB_PORT=3306 lein migrate migratethe database is still empty (no table expect the emtpy schema_migrations).

00:54:35.104 [main] INFO harmony.main.migrations - {"component":"migrations","event":"config","data":{"store":"database","migration-dir":"migrations","db":{"subprotocol":"mysql","subname":"//127.0.0.1:3306/harmony_db","user":"harmony","password":"*******"}}} 00:54:35.108 [main] INFO harmony.main.migrations - {"component":"migrations","event":"migrate","data":{"args":null}} 00:54:35.110 [main] INFO migratus.core - Starting migrations Sun Oct 28 00:54:36 UTC 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. 00:54:37.625 [main] INFO migratus.core - Ending migrations

What am I doing wrong ?

Thanks

@nouhouari
Copy link
Author

As a workaround, I executed all the scripts from the command line.
for i in ``ls resources/migrations/\``; do echo "Running " $i; mysql -uharmony -pxxxxxx harmony_db < ./resources/migrations/$i; done

@amclelland
Copy link

I solved this by bumping to [migratus "1.0.3"]

Based on this thread

yogthos/migratus#126

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

2 participants