Giter Club home page Giter Club logo

Comments (3)

kitloong avatar kitloong commented on June 13, 2024

Hi @Synchro , I am very sorry for my late reply, which took place a month ago.

By default, the generator will generate migrations without considering the DB charset/collation.

If you would like to generate migrations as you described, you need to run the generator with the option --use-db-collation.

When using this option, it will compare the DB charset/collation with your Laravel configuration.
If they matched, nothing will be changed.
Else, it will generate migrations with respect to your DB charset/collation.

Please let me know if the option doesn't work for you.

from laravel-migrations-generator.

Synchro avatar Synchro commented on June 13, 2024

Why wouldn't this be the default? Surely the intention is to create migrations that reflect the database schema accurately, and that would include charsets and collations? I can see that you might want to not do it as a special case, but that should be rare.

from laravel-migrations-generator.

kitloong avatar kitloong commented on June 13, 2024

Hi @Synchro , you raise a valid point.

However, when I started working on this project, the charset and collations were not being generated as part of the migrations.

To strike a balance between consistency and offering additional functionality, I made the decision to maintain the original behavior as the default, and I introduced the --use-db-collation option.

In summary, this allows users who want to generate migrations with respect to their database's charset and collation to do so while keeping the original behavior.

from laravel-migrations-generator.

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.