sharetribe / harmony

Availability management backend and API for Sharetribe marketplaces
https://www.sharetribe.com
Apache License 2.0
19 stars 11 forks source link

Migration issue #48

Open nouhouari opened 5 years ago

nouhouari commented 5 years ago

Hi, I'm facing some issues when trying to install and run locally. I've created the database _harmonydb 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 commented 5 years ago

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 commented 4 years ago

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

Based on this thread

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