From 3aca1018212d76fb1a8cbcfbd584a4fa74ede2fc Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:51:18 +0100 Subject: [PATCH] fix: Redis DB should use the new resourceable columns --- bootstrap/helpers/databases.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstrap/helpers/databases.php b/bootstrap/helpers/databases.php index 6a834ee6f..ee65a902f 100644 --- a/bootstrap/helpers/databases.php +++ b/bootstrap/helpers/databases.php @@ -56,14 +56,16 @@ function create_standalone_redis($environment_id, $destination_uuid, ?array $oth EnvironmentVariable::create([ 'key' => 'REDIS_PASSWORD', 'value' => $redis_password, - 'standalone_redis_id' => $database->id, + 'resourceable_type' => StandaloneRedis::class, + 'resourceable_id' => $database->id, 'is_shared' => false, ]); EnvironmentVariable::create([ 'key' => 'REDIS_USERNAME', 'value' => 'default', - 'standalone_redis_id' => $database->id, + 'resourceable_type' => StandaloneRedis::class, + 'resourceable_id' => $database->id, 'is_shared' => false, ]);