fix: Redis DB should use the new resourceable columns
This commit is contained in:
parent
7a8f66b2ec
commit
3aca101821
1 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue