nnjeim / world

A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
MIT License
748 stars 105 forks source link

Migrations and seeding for devops pipeline #36

Closed Jacq closed 1 year ago

Jacq commented 1 year ago

Is your feature request related to a problem? Please describe. I am integrating this package with a devops pipeline and an existing application.

Describe the solution you'd like I would like to change the migration order so this package is applied before my migrations, for that if possible it will be great if migrations are published so they timestamp can be modified, I do not know if this affects the package upgrades in the future. It would be nice if the seed operation allows config option to allow partial or full seeding, so full can be perform just once and partial (much faster) can be used in testing for some records.

Describe alternatives you've considered I have checked that there is a migrations --package flag that could force the migration of a package but it only exists for newer laravel versions and I also prefer to keep the devops pipeline clean without code for this package. Regarding the seeding for the testing, I have consider creating a custom countries/states... small seed so my tests start faster and still I have some data (not all) to check the relevant relations, but it will be more coherente to use the existing dataset instead of making up some new ones.

Additional context Thanks for this package :) !

nnjeim commented 1 year ago

@Jacq i appreciate the time it took you to write here. please feel free to contribute in suggesting some changes to make the package better. Please submit a PR i would do my best to help you if needed.