Comments (3)
This is due to a clash between the table used by Ecto and EventStore to manage their database migrations. Both use the same schema_migrations
table name.
You will need to either:
- Rename the existing Ecto
schema_migrations
table to prevent the conflict. See #73 for details. - Use a separate Postgres schema or database for the event store.
- Submit a PR to allow the EventStore migrations table to be configured (
😉 )
from eventstore.
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
- Not sure if there is a better way to interpolate the database name into the create and insert script
- I would need some help with some tests :) The tests are working fine, which means the method returns the previous name as the fallback. But I guess it would be good to have some explicit tests in place.
- Last but not least, there is no documentation yet
😂
I would love to get some early feedback before I finish the work and submit a PR.
I was able to execute event_source.init
in my project with this change and adjusted config. The table is created and everything is set up.
Cheers!
from eventstore.
@ser1us The changes you've made look good so far.
from eventstore.
Related Issues (20)
- Add optional time-to-live to subscription lock HOT 3
- jsonb_serializer does not work because it tries to convet keys in json type data fields to atoms HOT 5
- Multi tenancy support HOT 4
- Allow an `event_id` to be provided when appending events HOT 1
- Match Error Between event_store and Postgrex.Error HOT 1
- after disconnecting the server from the internet it shuts down the DB then the whole app
- is 1.4.0 to be published soon? HOT 1
- Can't reset store for testing HOT 3
- EventStore uses atom for :name - long lived system - atom exhaustion HOT 2
- Event stream table size limit? HOT 3
- Use configurable event store query timeout for subscription queries
- no function clause matching in EventStore.Storage.Appender.handle_response/1
- How to create/init a dynamic EventStore? HOT 3
- Unsupported query parameter `sslmode` HOT 9
- Dialyzer error when calling subscribe/2 with `name` option HOT 1
- using delete_stream HOT 2
- Perform unattended init and migration on application startup
- Event retention policy/pruning HOT 1
- can you give a concrete example of how to stream all events HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventstore.