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

Seeding currencies should be performed in a seeder. #526

Closed
aejnsn opened this issue Aug 9, 2017 · 2 comments
Closed

Seeding currencies should be performed in a seeder. #526

aejnsn opened this issue Aug 9, 2017 · 2 comments
Labels
help wanted packaging Packaging Monica

Comments

@aejnsn
Copy link

aejnsn commented Aug 9, 2017

I see that currencies are introduced via a JSON file as a migration. This should be refactored into a seeder. Migrations are for controlling the schema, not the data within said schema.

I realize this change would impact the update path, however supporting multiple currencies is something that would likely involve change to any underlying data as well. The update path could be sustained by constructing a console command ran upon updating or having users updating their installation by manually running an ideally separate seeder class (php artisan db:seed --class=SeedCurrencies). Moving forward in later versions, that seeder class would be included in the top-level DatabaseSeeder class, just like the production block consisting of ActivityTypesTableSeeder and CountriesSeederTable. This would allow it would be seamless for new installations just as the migrations presently exist.

See merged PR changes here: #509

@djaiss
Copy link
Member

djaiss commented Aug 10, 2017

I agree that it should be moved to a seeder instead, definitely.

@github-actions
Copy link

This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted packaging Packaging Monica
Projects
None yet
Development

No branches or pull requests

3 participants