Git Product home page Git Product logo

Comments (4)

salimane avatar salimane commented on July 20, 2024

the environment name is there to specify prod or dev so that you don't have to specify it in your database name too. That's not DRY. Why can't you have the same production database name as your local database ? The migration directory is structured according to the database name in order not to have different database migrations files being put together.
Thanks

from ruckusing-migrations.

rcraggs avatar rcraggs commented on July 20, 2024

We may not control the names of the databases which we are migrating. db_prod and db_dev were examples. They may be called database1 and database2, with names not relating to prod, dev.

I believe it would be more elegant (and useful) to separate the the schema name - ie the application or whatever, from the physical database name so that we are not forced to have databases all with the same name.

from ruckusing-migrations.

timtonk avatar timtonk commented on July 20, 2024

In more old versions ruckus have the only file folder, but many environments. You can migrate with one set of migrations on any db from environments. Have the same issue on my project, but solved it in more obvious way:
have the same migrations in both folders. This way allow you to skip some db_env_oriented migrations. For example, you create table for production, but this table already exists in development db. There is no need to run this migration for dev, but prod.

from ruckusing-migrations.

salimane avatar salimane commented on July 20, 2024

Hi,
Please I've already merged #83 which fixes this problem by specifying a custom folder name in the config like 'directory' => 'custom_name'
Thanks

from ruckusing-migrations.

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.