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

Publish Migrations #36

Open
muarachmann opened this issue Aug 26, 2020 · 2 comments
Open

Publish Migrations #36

muarachmann opened this issue Aug 26, 2020 · 2 comments

Comments

@muarachmann
Copy link

Hi first +1 to this package. However there is some need that the worlds... migration runs before the other migration tables. For example I have users table that has country_id, city_id references world_countries ... Can this be added to the vendor publish? so that we can modify the naming? as I see the publish command only seeds.

PS- I am running artisan migrate:fresh --seed or artisan db:migrate for the first time. Let me know if this is something you would like I can raise a PR

@muarachmann
Copy link
Author

muarachmann commented Aug 26, 2020

I see this was commented out here . I think a better way will be to rename the migrations to a date earlier than the default laravel users_table 2014_10_12_000000_create_users_table.php maybe to some older date 2013... what do you think @khsing ?

// $this->publishes([__DIR__ . '/../database/migrations/' => base_path('database/migrations')], 'migrations');

@khsing
Copy link
Owner

khsing commented Mar 7, 2021

@muarachmann I think it may not be a good way to do it. You can alter your users table after first initial.

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

No branches or pull requests

2 participants