dshoreman / servidor

A modern web application for managing servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `Database` wrapper for creating databases

dshoreman opened this issue · comments

In order to create databases we'll need to use Doctrine's DBAL iirc, or at the very least Laravel's Schema stuff but I don't think that supported database creation.

It's feasible that we may end up linking databases to users and adding audit logs of the creation in future, so it should be its own class. Something like (new Servidor\Database())->create($name); which would be called from the Database API controller as well as from Sites during creation.

Wrapper class for this is added in #167, now we just need to add the actual creation parts.