fix: Redis DB should use the new resourceable columns
This commit is contained in:
@@ -56,14 +56,16 @@ function create_standalone_redis($environment_id, $destination_uuid, ?array $oth
|
|||||||
EnvironmentVariable::create([
|
EnvironmentVariable::create([
|
||||||
'key' => 'REDIS_PASSWORD',
|
'key' => 'REDIS_PASSWORD',
|
||||||
'value' => $redis_password,
|
'value' => $redis_password,
|
||||||
'standalone_redis_id' => $database->id,
|
'resourceable_type' => StandaloneRedis::class,
|
||||||
|
'resourceable_id' => $database->id,
|
||||||
'is_shared' => false,
|
'is_shared' => false,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
EnvironmentVariable::create([
|
EnvironmentVariable::create([
|
||||||
'key' => 'REDIS_USERNAME',
|
'key' => 'REDIS_USERNAME',
|
||||||
'value' => 'default',
|
'value' => 'default',
|
||||||
'standalone_redis_id' => $database->id,
|
'resourceable_type' => StandaloneRedis::class,
|
||||||
|
'resourceable_id' => $database->id,
|
||||||
'is_shared' => false,
|
'is_shared' => false,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user