-
Notifications
You must be signed in to change notification settings - Fork 147
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
Unable to run mix event_store.init
with existing database
#221
Comments
This is due to a clash between the table used by Ecto and EventStore to manage their database migrations. Both use the same You will need to either:
|
Thanks for the info! I tried to make the table configurable. Please have a look at the diff here: develop...ser1us:feature/configure-migration-source
I would love to get some early feedback before I finish the work and submit a PR. I was able to execute Cheers! |
@ser1us The changes you've made look good so far. |
Hello there!
I have a database ready with a couple of tables already in use. Now I am trying to introduce eventstore to the project and according to the docs it should be possible to reuse an existing database by simply running
mix event_store.init
.That's when I run into this error message:
** (Postgrex.Error) ERROR 42P07 (duplicate_table) relation "schema_migrations" already exists
Adding
schema
to the config works for obvious reasons, but that's not what I was looking for :)Cheers,
Christoph
The text was updated successfully, but these errors were encountered: