Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortening migration names for improved readability and understanding #15

Open
meekstellar opened this issue Oct 3, 2023 · 0 comments

Comments

@meekstellar
Copy link

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.

@roxblnfk roxblnfk transferred this issue from cycle/migrations Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant