mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-14 16:52:45 -04:00
- database import: add keep_owners (restore PostgreSQL owners and privileges) and sqlite_database (pick the target SQLite file) to the API, OpenAPI spec, and import form - oauth: require password confirmation and support team selection on OAuth login - remote process: send team broadcast events to the team of the server that ran the process instead of the causer's user id - servers API: handle the legacy build server setting - compose: support parent bind paths and volume driver options - dns: improve record hints and provider management - notifications: fix throttling and missing backup notifications - ui: rework the confirmation modal - add feature and unit tests for the new behavior
24 lines
649 B
PHP
24 lines
649 B
PHP
<?php
|
|
|
|
namespace App\Support\DatabaseImport;
|
|
|
|
use InvalidArgumentException;
|
|
|
|
readonly class DatabaseImportSource
|
|
{
|
|
public function __construct(
|
|
public string $type,
|
|
public ?string $uploadId = null,
|
|
public ?string $path = null,
|
|
public ?string $s3StorageUuid = null,
|
|
public bool $dumpAll = false,
|
|
public bool $replaceExisting = false,
|
|
public bool $keepOwners = false,
|
|
public ?string $sqliteDatabase = null,
|
|
) {
|
|
if (! in_array($type, ['upload', 's3', 'server'], true)) {
|
|
throw new InvalidArgumentException('Invalid database import source.');
|
|
}
|
|
}
|
|
}
|