diff --git a/app/Actions/Database/StartPostgresql.php b/app/Actions/Database/StartPostgresql.php
index 27e0620f1..4b9b99f3e 100644
--- a/app/Actions/Database/StartPostgresql.php
+++ b/app/Actions/Database/StartPostgresql.php
@@ -150,7 +150,7 @@ class StartPostgresql
private function generate_init_scripts()
{
- if (count($this->database->init_scripts) === 0) {
+ if (is_null($this->database->init_scripts) || count($this->database->init_scripts) === 0) {
return;
}
foreach ($this->database->init_scripts as $init_script) {
diff --git a/app/Actions/License/CheckResaleLicense.php b/app/Actions/License/CheckResaleLicense.php
index 2ce3c574a..71d1dddaa 100644
--- a/app/Actions/License/CheckResaleLicense.php
+++ b/app/Actions/License/CheckResaleLicense.php
@@ -18,7 +18,7 @@ class CheckResaleLicense
return;
}
$base_url = config('coolify.license_url');
- if (isDev()) {
+ if (is_dev()) {
$base_url = 'http://host.docker.internal:8787';
}
$instance_id = config('app.id');
diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php
index 8b5644a1d..8f81852d8 100644
--- a/app/Actions/Server/UpdateCoolify.php
+++ b/app/Actions/Server/UpdateCoolify.php
@@ -17,7 +17,7 @@ class UpdateCoolify
$settings = InstanceSettings::get();
ray('Running InstanceAutoUpdateJob');
$localhost_name = 'localhost';
- if (isDev()) {
+ if (is_dev()) {
$localhost_name = 'testing-local-docker-container';
}
$this->server = Server::where('name', $localhost_name)->firstOrFail();
@@ -52,7 +52,7 @@ class UpdateCoolify
private function update()
{
- if (isDev()) {
+ if (is_dev()) {
ray("Running update on local docker container. Updating to $this->latest_version");
remote_process([
"sleep 10"
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php
index b580979ff..501303b2f 100644
--- a/app/Console/Kernel.php
+++ b/app/Console/Kernel.php
@@ -18,7 +18,7 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule): void
{
// $schedule->call(fn() => $this->check_scheduled_backups($schedule))->everyTenSeconds();
- if (isDev()) {
+ if (is_dev()) {
$schedule->command('horizon:snapshot')->everyMinute();
$schedule->job(new InstanceApplicationsStatusJob)->everyMinute();
$schedule->job(new ProxyCheckJob)->everyFiveMinutes();
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php
index 9d9dabab6..b08c07012 100644
--- a/app/Exceptions/Handler.php
+++ b/app/Exceptions/Handler.php
@@ -45,7 +45,7 @@ class Handler extends ExceptionHandler
{
$this->reportable(function (Throwable $e) {
$this->settings = InstanceSettings::get();
- if ($this->settings->do_not_track || isDev()) {
+ if ($this->settings->do_not_track || is_dev()) {
return;
}
Integration::captureUnhandledException($e);
diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php
index 125f56d70..a2ed0f2f9 100644
--- a/app/Http/Controllers/Controller.php
+++ b/app/Http/Controllers/Controller.php
@@ -19,7 +19,7 @@ class Controller extends BaseController
public function subscription()
{
- if (!isCloud()) {
+ if (!is_cloud()) {
abort(404);
}
return view('subscription', [
@@ -29,7 +29,7 @@ class Controller extends BaseController
public function license()
{
- if (!isCloud()) {
+ if (!is_cloud()) {
abort(404);
}
return view('settings.license', [
diff --git a/app/Http/Controllers/ProjectController.php b/app/Http/Controllers/ProjectController.php
index 80cdc7b47..9cab1063d 100644
--- a/app/Http/Controllers/ProjectController.php
+++ b/app/Http/Controllers/ProjectController.php
@@ -41,6 +41,9 @@ class ProjectController extends Controller
public function new()
{
+ $type = request()->query('type');
+ $destination_uuid = request()->query('destination');
+
$project = session('currentTeam')->load(['projects'])->projects->where('uuid', request()->route('project_uuid'))->first();
if (!$project) {
return redirect()->route('dashboard');
@@ -49,9 +52,14 @@ class ProjectController extends Controller
if (!$environment) {
return redirect()->route('dashboard');
}
-
- $type = request()->query('type');
-
+ if (in_array($type, DATABASE_TYPES)) {
+ $standalone_postgresql = create_standalone_postgresql($environment->id, $destination_uuid);
+ return redirect()->route('project.database.configuration', [
+ 'project_uuid' => $project->uuid,
+ 'environment_name' => $environment->name,
+ 'database_uuid' => $standalone_postgresql->uuid,
+ ]);
+ }
return view('project.new', [
'type' => $type
]);
diff --git a/app/Http/Livewire/Project/Application/Heading.php b/app/Http/Livewire/Project/Application/Heading.php
index 41b84bb15..fdbe5f71e 100644
--- a/app/Http/Livewire/Project/Application/Heading.php
+++ b/app/Http/Livewire/Project/Application/Heading.php
@@ -17,7 +17,7 @@ class Heading extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function check_status()
diff --git a/app/Http/Livewire/Project/Application/Previews.php b/app/Http/Livewire/Project/Application/Previews.php
index f6f493827..b3582fbef 100644
--- a/app/Http/Livewire/Project/Application/Previews.php
+++ b/app/Http/Livewire/Project/Application/Previews.php
@@ -20,7 +20,7 @@ class Previews extends Component
public function mount()
{
$this->pull_requests = collect();
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function loadStatus($pull_request_id)
diff --git a/app/Http/Livewire/Project/Application/Rollback.php b/app/Http/Livewire/Project/Application/Rollback.php
index ee827b206..d4ac53045 100644
--- a/app/Http/Livewire/Project/Application/Rollback.php
+++ b/app/Http/Livewire/Project/Application/Rollback.php
@@ -16,7 +16,7 @@ class Rollback extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function rollbackImage($commit)
diff --git a/app/Http/Livewire/Project/Database/Heading.php b/app/Http/Livewire/Project/Database/Heading.php
index 300804bad..59f4955a6 100644
--- a/app/Http/Livewire/Project/Database/Heading.php
+++ b/app/Http/Livewire/Project/Database/Heading.php
@@ -34,7 +34,7 @@ class Heading extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function stop()
diff --git a/app/Http/Livewire/Project/DeleteEnvironment.php b/app/Http/Livewire/Project/DeleteEnvironment.php
index da08b5fc6..f341d7cb5 100644
--- a/app/Http/Livewire/Project/DeleteEnvironment.php
+++ b/app/Http/Livewire/Project/DeleteEnvironment.php
@@ -12,7 +12,7 @@ class DeleteEnvironment extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function delete()
diff --git a/app/Http/Livewire/Project/DeleteProject.php b/app/Http/Livewire/Project/DeleteProject.php
index bfb1b683c..5bbfea17a 100644
--- a/app/Http/Livewire/Project/DeleteProject.php
+++ b/app/Http/Livewire/Project/DeleteProject.php
@@ -12,7 +12,7 @@ class DeleteProject extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function delete()
diff --git a/app/Http/Livewire/Project/New/GithubPrivateRepository.php b/app/Http/Livewire/Project/New/GithubPrivateRepository.php
index dcd4b8c81..77b2b2dab 100644
--- a/app/Http/Livewire/Project/New/GithubPrivateRepository.php
+++ b/app/Http/Livewire/Project/New/GithubPrivateRepository.php
@@ -38,7 +38,7 @@ class GithubPrivateRepository extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
$this->query = request()->query();
$this->repositories = $this->branches = collect();
$this->github_apps = GithubApp::private();
diff --git a/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php b/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php
index afc0062a0..1bab8ce1f 100644
--- a/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php
+++ b/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php
@@ -50,10 +50,10 @@ class GithubPrivateRepositoryDeployKey extends Component
public function mount()
{
- if (isDev()) {
+ if (is_dev()) {
$this->repository_url = 'https://github.com/coollabsio/coolify-examples';
}
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
$this->query = request()->query();
$this->private_keys = PrivateKey::where('team_id', session('currentTeam')->id)->where('id', '!=', 0)->get();
}
diff --git a/app/Http/Livewire/Project/New/PublicGitRepository.php b/app/Http/Livewire/Project/New/PublicGitRepository.php
index a610bf47b..7fd15cd34 100644
--- a/app/Http/Livewire/Project/New/PublicGitRepository.php
+++ b/app/Http/Livewire/Project/New/PublicGitRepository.php
@@ -45,11 +45,11 @@ class PublicGitRepository extends Component
public function mount()
{
- if (isDev()) {
+ if (is_dev()) {
$this->repository_url = 'https://github.com/coollabsio/coolify-examples';
$this->port = 3000;
}
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
$this->query = request()->query();
}
diff --git a/app/Http/Livewire/Project/New/Select.php b/app/Http/Livewire/Project/New/Select.php
index e09862649..f95599154 100644
--- a/app/Http/Livewire/Project/New/Select.php
+++ b/app/Http/Livewire/Project/New/Select.php
@@ -17,7 +17,7 @@ class Select extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function set_type(string $type)
diff --git a/app/Http/Livewire/Project/Shared/Danger.php b/app/Http/Livewire/Project/Shared/Danger.php
index 3b5283ef2..911192a2a 100644
--- a/app/Http/Livewire/Project/Shared/Danger.php
+++ b/app/Http/Livewire/Project/Shared/Danger.php
@@ -14,7 +14,7 @@ class Danger extends Component
public function mount()
{
$this->modalId = new Cuid2(7);
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function delete()
diff --git a/app/Http/Livewire/Project/Shared/EnvironmentVariable/Add.php b/app/Http/Livewire/Project/Shared/EnvironmentVariable/Add.php
index 783c52183..cf14a894e 100644
--- a/app/Http/Livewire/Project/Shared/EnvironmentVariable/Add.php
+++ b/app/Http/Livewire/Project/Shared/EnvironmentVariable/Add.php
@@ -26,7 +26,7 @@ class Add extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function submit()
diff --git a/app/Http/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Http/Livewire/Project/Shared/EnvironmentVariable/Show.php
index f17ac8893..f75a91b63 100644
--- a/app/Http/Livewire/Project/Shared/EnvironmentVariable/Show.php
+++ b/app/Http/Livewire/Project/Shared/EnvironmentVariable/Show.php
@@ -25,7 +25,7 @@ class Show extends Component
public function mount()
{
$this->modalId = new Cuid2(7);
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function submit()
diff --git a/app/Http/Livewire/Project/Shared/Storages/Add.php b/app/Http/Livewire/Project/Shared/Storages/Add.php
index afd7b408b..e7831f1cb 100644
--- a/app/Http/Livewire/Project/Shared/Storages/Add.php
+++ b/app/Http/Livewire/Project/Shared/Storages/Add.php
@@ -25,7 +25,7 @@ class Add extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
public function submit()
diff --git a/app/Http/Livewire/Server/PrivateKey.php b/app/Http/Livewire/Server/PrivateKey.php
index 4f9a1e022..366aec85f 100644
--- a/app/Http/Livewire/Server/PrivateKey.php
+++ b/app/Http/Livewire/Server/PrivateKey.php
@@ -39,6 +39,6 @@ class PrivateKey extends Component
public function mount()
{
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
}
}
diff --git a/app/Http/Livewire/Source/Github/Change.php b/app/Http/Livewire/Source/Github/Change.php
index b85575cd5..e2be4e0ab 100644
--- a/app/Http/Livewire/Source/Github/Change.php
+++ b/app/Http/Livewire/Source/Github/Change.php
@@ -38,7 +38,7 @@ class Change extends Component
public function mount()
{
$this->webhook_endpoint = $this->ipv4;
- $this->parameters = getRouteParameters();
+ $this->parameters = get_route_parameters();
$this->is_system_wide = $this->github_app->is_system_wide;
}
diff --git a/app/Http/Livewire/Team/InviteLink.php b/app/Http/Livewire/Team/InviteLink.php
index 66a8add4e..d52533012 100644
--- a/app/Http/Livewire/Team/InviteLink.php
+++ b/app/Http/Livewire/Team/InviteLink.php
@@ -15,7 +15,7 @@ class InviteLink extends Component
public function mount()
{
- $this->email = isDev() ? 'test3@example.com' : '';
+ $this->email = is_dev() ? 'test3@example.com' : '';
}
public function viaEmail()
diff --git a/app/Http/Livewire/Team/Storage/Create.php b/app/Http/Livewire/Team/Storage/Create.php
index 38aee59b5..3edf29c20 100644
--- a/app/Http/Livewire/Team/Storage/Create.php
+++ b/app/Http/Livewire/Team/Storage/Create.php
@@ -36,7 +36,7 @@ class Create extends Component
public function mount()
{
- if (isDev()) {
+ if (is_dev()) {
$this->name = 'Local MinIO';
$this->description = 'Local MinIO';
$this->key = 'minioadmin';
diff --git a/app/Http/Livewire/Upgrade.php b/app/Http/Livewire/Upgrade.php
index e79c73fb7..f46e37ff7 100644
--- a/app/Http/Livewire/Upgrade.php
+++ b/app/Http/Livewire/Upgrade.php
@@ -18,7 +18,7 @@ class Upgrade extends Component
$this->latestVersion = get_latest_version_of_coolify();
$currentVersion = config('version');
version_compare($currentVersion, $this->latestVersion, '<') ? $this->isUpgradeAvailable = true : $this->isUpgradeAvailable = false;
- if (isDev()) {
+ if (is_dev()) {
$this->isUpgradeAvailable = true;
}
$settings = InstanceSettings::get();
diff --git a/app/Http/Middleware/SubscriptionValid.php b/app/Http/Middleware/SubscriptionValid.php
index e7fcdff3c..c63c6d823 100644
--- a/app/Http/Middleware/SubscriptionValid.php
+++ b/app/Http/Middleware/SubscriptionValid.php
@@ -12,7 +12,7 @@ class SubscriptionValid
public function handle(Request $request, Closure $next): Response
{
if (auth()->user()) {
- if (isCloud() && !isSubscribed()) {
+ if (is_cloud() && !isSubscribed()) {
ray('SubscriptionValid Middleware');
$allowed_paths = [
diff --git a/app/Jobs/DockerCleanupJob.php b/app/Jobs/DockerCleanupJob.php
index 2c0a3fc06..52279c241 100644
--- a/app/Jobs/DockerCleanupJob.php
+++ b/app/Jobs/DockerCleanupJob.php
@@ -32,7 +32,7 @@ class DockerCleanupJob implements ShouldQueue
try {
$servers = Server::all();
foreach ($servers as $server) {
- if (isDev()) {
+ if (is_dev()) {
$docker_root_filesystem = "/";
} else {
$docker_root_filesystem = instant_remote_process(['stat --printf=%m $(docker info --format "{{json .DockerRootDir}}" |sed \'s/"//g\')'], $server);
diff --git a/bootstrap/helpers/contants.php b/bootstrap/helpers/contants.php
new file mode 100644
index 000000000..3c4d7d290
--- /dev/null
+++ b/bootstrap/helpers/contants.php
@@ -0,0 +1,3 @@
+first();
+ if (!$destination) {
+ throw new Exception('Destination not found');
+ }
+ return StandalonePostgresql::create([
+ 'name' => generate_database_name('postgresql'),
+ 'postgres_password' => \Illuminate\Support\Str::password(),
+ 'environment_id' => $environment_id,
+ 'destination_id' => $destination->id,
+ 'destination_type' => $destination->getMorphClass(),
+ ]);
+
+}
diff --git a/bootstrap/helpers/proxy.php b/bootstrap/helpers/proxy.php
index 1ae747686..831d5fc0b 100644
--- a/bootstrap/helpers/proxy.php
+++ b/bootstrap/helpers/proxy.php
@@ -13,7 +13,7 @@ function get_proxy_path()
function generate_default_proxy_configuration(Server $server)
{
$proxy_path = get_proxy_path();
- if (isDev()) {
+ if (is_dev()) {
$proxy_path = config('coolify.dev_config_path') . '/' . $server->name . '/proxy';
}
$networks = collect($server->standaloneDockers)->map(function ($docker) {
@@ -85,7 +85,7 @@ function generate_default_proxy_configuration(Server $server)
],
],
];
- if (isDev()) {
+ if (is_dev()) {
$config['services']['traefik']['command'][] = "--log.level=debug";
}
return Yaml::dump($config, 4, 2);
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 388d7f31c..fed4a418f 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -5,37 +5,45 @@ use Illuminate\Database\QueryException;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
+use Nubs\RandomNameGenerator\All;
use Visus\Cuid2\Cuid2;
-function application_configuration_dir() :string {
+function application_configuration_dir(): string
+{
return '/data/coolify/applications';
}
-function database_configuration_dir(): string {
+
+function database_configuration_dir(): string
+{
return '/data/coolify/databases';
}
-function backup_dir(): string {
+
+function backup_dir(): string
+{
return '/data/coolify/backups';
}
-function generate_readme_file(string $name, string $updated_at): string {
- return "Resource name: {$name}\nLatest Deployment Date: {$updated_at}";
+
+function generate_readme_file(string $name, string $updated_at): string
+{
+ return "Resource name: $name\nLatest Deployment Date: $updated_at";
}
-function general_error_handler(\Throwable|null $err = null, $that = null, $isJson = false, $customErrorMessage = null)
+function general_error_handler(Throwable|null $err = null, $that = null, $isJson = false, $customErrorMessage = null): mixed
{
try {
- ray('ERROR OCCURED: ' . $err->getMessage());
+ ray('ERROR OCCURRED: ' . $err->getMessage());
if ($err instanceof QueryException) {
if ($err->errorInfo[0] === '23505') {
- throw new \Exception($customErrorMessage ?? 'Duplicate entry found.', '23505');
+ throw new Exception($customErrorMessage ?? 'Duplicate entry found.', '23505');
} else if (count($err->errorInfo) === 4) {
- throw new \Exception($customErrorMessage ?? $err->errorInfo[3]);
+ throw new Exception($customErrorMessage ?? $err->errorInfo[3]);
} else {
- throw new \Exception($customErrorMessage ?? $err->errorInfo[2]);
+ throw new Exception($customErrorMessage ?? $err->errorInfo[2]);
}
} else {
- throw new \Exception($customErrorMessage ?? $err->getMessage());
+ throw new Exception($customErrorMessage ?? $err->getMessage());
}
- } catch (\Throwable $error) {
+ } catch (Throwable $error) {
if ($that) {
return $that->emit('error', $customErrorMessage ?? $error->getMessage());
} elseif ($isJson) {
@@ -46,51 +54,54 @@ function general_error_handler(\Throwable|null $err = null, $that = null, $isJso
} else {
ray($customErrorMessage);
ray($error);
+ return $customErrorMessage ?? $error->getMessage();
}
}
}
-function getRouteParameters()
+function get_route_parameters(): array
{
return Route::current()->parameters();
}
-function get_latest_version_of_coolify()
+function get_latest_version_of_coolify(): string
{
try {
$response = Http::get('https://cdn.coollabs.io/coolify/versions.json');
$versions = $response->json();
return data_get($versions, 'coolify.v4.version');
- } catch (\Throwable $th) {
+ } catch (Throwable $th) {
//throw $th;
ray($th->getMessage());
return '0.0.0';
}
}
-function generate_random_name()
+function generate_random_name(): string
{
- $generator = \Nubs\RandomNameGenerator\All::create();
+ $generator = All::create();
$cuid = new Cuid2(7);
- return Str::kebab("{$generator->getName()}-{$cuid}");
+ return Str::kebab("{$generator->getName()}-$cuid");
}
-function generate_application_name(string $git_repository, string $git_branch)
+function generate_application_name(string $git_repository, string $git_branch): string
{
$cuid = new Cuid2(7);
- return Str::kebab("{$git_repository}:{$git_branch}-{$cuid}");
+ return Str::kebab("$git_repository:$git_branch-$cuid");
}
-function is_transactional_emails_active()
+function is_transactional_emails_active(): bool
{
return data_get(InstanceSettings::get(), 'smtp_enabled');
}
-function set_transanctional_email_settings()
+function set_transanctional_email_settings(): void
{
$settings = InstanceSettings::get();
$password = data_get($settings, 'smtp_password');
- if ($password) $password = decrypt($password);
+ if (isset($password)) {
+ $password = decrypt($password);
+ }
config()->set('mail.default', 'smtp');
config()->set('mail.mailers.smtp', [
@@ -105,16 +116,19 @@ function set_transanctional_email_settings()
]);
}
-function base_ip()
+function base_ip(): string
{
- if (isDev()) {
+ if (is_dev()) {
return "http://localhost";
}
$settings = InstanceSettings::get();
- return "http://{$settings->public_ipv4}";
+ return "http://$settings->public_ipv4";
}
-function base_url(bool $withPort = true)
+/**
+ * If fqdn is set, return it, otherwise return public ip.
+ */
+function base_url(bool $withPort = true): string
{
$settings = InstanceSettings::get();
if ($settings->fqdn) {
@@ -123,31 +137,32 @@ function base_url(bool $withPort = true)
$port = config('app.port');
if ($settings->public_ipv4) {
if ($withPort) {
- if (isDev()) {
- return "http://localhost:{$port}";
+ if (is_dev()) {
+ return "http://localhost:$port";
}
- return "http://{$settings->public_ipv4}:{$port}";
+ return "http://$settings->public_ipv4:$port";
}
- if (isDev()) {
+ if (is_dev()) {
return "http://localhost";
}
- return "http://{$settings->public_ipv4}";
+ return "http://$settings->public_ipv4";
}
if ($settings->public_ipv6) {
if ($withPort) {
- return "http://{$settings->public_ipv6}:{$port}";
+ return "http://$settings->public_ipv6:$port";
}
- return "http://{$settings->public_ipv6}";
+ return "http://$settings->public_ipv6";
}
return url('/');
}
-function isDev()
+function is_dev(): bool
{
return config('app.env') === 'local';
}
-function isCloud()
+function is_cloud(): bool
{
return !config('coolify.self_hosted');
}
+
diff --git a/database/migrations/2023_08_09_154921_change_postgres_password_of_standalone_postgresqls.php b/database/migrations/2023_08_09_154921_change_postgres_password_of_standalone_postgresqls.php
new file mode 100644
index 000000000..f062f962a
--- /dev/null
+++ b/database/migrations/2023_08_09_154921_change_postgres_password_of_standalone_postgresqls.php
@@ -0,0 +1,21 @@
+text('postgres_password')->change();
+ });
+ }
+
+ public function down(): void
+ {
+ Schema::table('standalone_postgresqls', function (Blueprint $table) {
+ $table->string('postgres_password')->change();
+ });
+ }
+};
diff --git a/resources/views/components/applications/links.blade.php b/resources/views/components/applications/links.blade.php
index 2ba3897d8..f99fab82e 100644
--- a/resources/views/components/applications/links.blade.php
+++ b/resources/views/components/applications/links.blade.php
@@ -25,7 +25,7 @@