mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 14:06:15 +00:00
Database collations (#489)
* SyncDatabases * Collation on Create inc WordPress * Refactored Enum * Resolve sync issue * Fix for PostgreSQL * pint * reversed enum * style adjustments * add unit tests * style * fix tests * more tests --------- Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com> Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
This commit is contained in:
@ -41,6 +41,8 @@ public function index(Project $project, Server $server): ResourceCollection
|
||||
#[Post('/', name: 'api.projects.servers.databases.create', middleware: 'ability:write')]
|
||||
#[Endpoint(title: 'create', description: 'Create a new database.')]
|
||||
#[BodyParam(name: 'name', required: true)]
|
||||
#[BodyParam(name: 'charset', required: true)]
|
||||
#[BodyParam(name: 'collation', required: true)]
|
||||
#[ResponseFromApiResource(DatabaseResource::class, Database::class)]
|
||||
public function create(Request $request, Project $project, Server $server): DatabaseResource
|
||||
{
|
||||
|
Reference in New Issue
Block a user