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

[5.6] Improves guessing of the table name when generating a migration #24845

Merged
merged 1 commit into from
Jul 14, 2018
Merged

[5.6] Improves guessing of the table name when generating a migration #24845

merged 1 commit into from
Jul 14, 2018

Conversation

hivokas
Copy link
Contributor

@hivokas hivokas commented Jul 14, 2018

This pull request improves guessing of the table name when generating a migration.

As a result it won't be necessary to specify the table name in such cases because it will be guessed automatically:
php artisan make:migration add_title_field_to_posts_table
php artisan make:migration delete_description_field_from_products_table
php artisan make:migration change_type_of_body_field_in_posts_table

@sisve
Copy link
Contributor

sisve commented Jul 14, 2018

Should this have any tests?

@taylorotwell taylorotwell merged commit be79fb8 into laravel:5.6 Jul 14, 2018
@taylorotwell
Copy link
Member

Extacted table guessing into a class and added tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants