Open sinnbeck opened 4 years ago
We're not gaining much overhead by adding an empty database, so adding it by default and it not being used wouldn't be too bad.
Ok so we should just add a small sql script to create an extra database in Images/stubs.
Do you have experience with postgres?
I've worked with Postgres before, but not for a while. what are you looking to do?
Just wondering if we can create a database with the same sql command as for mysql. And if there are anything important to consider.
Otherwise I will just Google it 👍
I'd have to google it to remind myself TBH.
I'll brainstorm a bit. Maybe instead allow the user to add a db with an artisan command?
running an extra artisan command would be my preference. Was thinking that we could have a command like the following
php artisan served:config
to do this, and then we can prompt for some details.
Yeah. Or something database specific like php artisan served:db-manage
But maybe for a start it is OK with external access, and "shell" access
php artisan served:ssh mysql
A test database would be nice. Should it be created by default or be an option (the user can add one manually, but that is more work)