harmony icon indicating copy to clipboard operation
harmony copied to clipboard

Migration issue

Open nouhouari opened this issue 6 years ago • 2 comments

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 avatar Oct 28 '18 00:10 nouhouari

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

nouhouari avatar Oct 28 '18 10:10 nouhouari

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

Based on this thread

https://github.com/yogthos/migratus/issues/126

amclelland avatar Jan 15 '20 04:01 amclelland