Giter Site home page Giter Site logo

Comments (3)

slashdotdash avatar slashdotdash commented on June 2, 2024

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.

ser1us avatar ser1us commented on June 2, 2024

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

  1. Not sure if there is a better way to interpolate the database name into the create and insert script
  2. 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.
  3. 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.

slashdotdash avatar slashdotdash commented on June 2, 2024

@ser1us The changes you've made look good so far.

from eventstore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.