laravel-world icon indicating copy to clipboard operation
laravel-world copied to clipboard

Publish Migrations

Open muarachmann opened this issue 3 years ago • 2 comments

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 avatar Aug 26 '20 10:08 muarachmann

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 ? https://github.com/khsing/laravel-world/blob/1de5a976a6e7069e9386dd97e2694c49454b1422/src/WorldServiceProvider.php#L42

muarachmann avatar Aug 26 '20 10:08 muarachmann

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

khsing avatar Mar 07 '21 08:03 khsing