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

Add Database wrapper for creating databases #146

Closed
dshoreman opened this issue Sep 26, 2019 · 1 comment
Closed

Add Database wrapper for creating databases #146

dshoreman opened this issue Sep 26, 2019 · 1 comment
Labels
enhancement New feature or request
Projects

Comments

@dshoreman
Copy link
Owner

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.

@dshoreman dshoreman created this issue from a note in Databases (To do) Sep 26, 2019
@dshoreman dshoreman added the enhancement New feature or request label Sep 26, 2019
dshoreman added a commit that referenced this issue Oct 8, 2019
Add basic database listing

Adds a basic (but filterable) table with a list of databases so the Databases item in the main sidebar menu finally has a purpose.

To get the list we add a new Database class that wraps Doctrine's DBAL which can eventually also be used to list tables etc.

This also sets up the ground work for #146.
@dshoreman
Copy link
Owner Author

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

Databases automation moved this from To do to Done Oct 27, 2019
dshoreman added a commit that referenced this issue Oct 27, 2019
Adds the ability to create a database (assuming it doesn't exist) by
typing its name in the search box and pressing enter. Couldn't really
be much simpler than that! Tested, too... Kinda.

Closes #146.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Databases
  
Done
Development

No branches or pull requests

1 participant