CraueConfigBundle icon indicating copy to clipboard operation
CraueConfigBundle copied to clipboard

Console command to create settings

Open dkisselev opened this issue 10 years ago • 3 comments

I understand the reasoning behind not making it 'easy' to create settings, since you shouldn't need to unless you're developing and have access to the code/db, but I think a console command to create settings would be a pretty good middle ground between a full ui (pointless) and busting out a SQL/database editor (or fiddling around with writing a good query in a migration).

The console command could also generate the doctrine migration to insert the new setting for you when you deploy.

Thoughts?

dkisselev avatar Aug 20 '14 23:08 dkisselev

Writing an SQL statement to insert one or several rows (probably with initial values) shouldn't be such a difficult task for a developer. :smirk:

craue avatar Aug 22 '14 12:08 craue

@craue, I think idea to generate migration for settings insert is quite good: it will be executed by deployment scripts automatically.

enl avatar Feb 14 '15 08:02 enl

@enl: Feel free to contribute. I won't have time to add such feature.

craue avatar Feb 17 '15 08:02 craue