Code Monkey home page Code Monkey logo

schema-migrations-generator's People

Contributors

alexndr-novikov avatar butschster avatar msmakouz avatar rauanmayemir avatar roxblnfk avatar serafimarts avatar wolfy-j avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

schema-migrations-generator's Issues

Supporing for cycle/migrations v4

Successfully installed:

        "cycle/database": "2.3.0",
        "cycle/migrations": "4.0.1",
        "cycle/orm": "2.2.1",

Error when executing: composer require cycle/schema-migrations-generator

Problem 1
    - cycle/schema-migrations-generator 1.0.0 requires cycle/database ^1.0.2 -> found cycle/database[1.0.2, 1.0.3, 1.0.4] but it conflicts with your root composer.json require (^2.3).
    - cycle/schema-migrations-generator 2.0.0 requires cycle/migrations ^3.0 -> found cycle/migrations[v3.0.0, v3.1.0, v3.1.1] but it conflicts with your root composer.json require (^4.0).
    - Root composer.json requires cycle/schema-migrations-generator * -> satisfiable by cycle/schema-migrations-generator[1.0.0, 2.0.0].

Shortening migration names for improved readability and understanding

In the current practice of creating database migrations, migration names are excessively long and contain unnecessary information, making them challenging to read, although still somewhat understandable. For example, the migration name 20230911.140854_0_0_default_change_asset_add_index_b59dda2670cd99c7e59d56efbcf42282_change_project_scan_alter_config_alter_input_change_asset_add_.php is quite burdensome to decipher.

Proposal

It is recommended to establish a convention where migration names primarily reflect the initial set of changes being made. Including the first couple of changes in the migration name should suffice to maintain clarity. For example, a migration name like 2022_05_20_090500_add_index_change_project_scan_in_asset_table.php conveys the primary purpose of the migration, making it more readable and comprehensible.

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.