You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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-levelDatabaseSeeder
class, just like the production block consisting ofActivityTypesTableSeeder
andCountriesSeederTable
. This would allow it would be seamless for new installations just as the migrations presently exist.See merged PR changes here: #509
The text was updated successfully, but these errors were encountered: