From 01f55445f1efe6c9971a0f2c68c9885f8eb8cbfa Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 3 Aug 2023 19:29:01 +0400 Subject: [PATCH] feat: add new database cluster --- app/controllers/api/projects.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 4892e7418e..ec3032be4b 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -95,6 +95,7 @@ App::post('/v1/projects') $backups['database_db_fra1_03'] = ['from' => '10:30', 'to' => '11:15']; $backups['database_db_fra1_04'] = ['from' => '13:30', 'to' => '14:15']; $backups['database_db_fra1_05'] = ['from' => '4:30', 'to' => '5:15']; + $backups['database_db_fra1_06'] = ['from' => '16:30', 'to' => '17:15']; $databases = Config::getParam('pools-database', []); @@ -118,7 +119,7 @@ App::post('/v1/projects') } } - if ($index = array_search('database_db_fra1_05', $databases)) { + if ($index = array_search('database_db_fra1_06', $databases)) { $database = $databases[$index]; } else { $database = $databases[array_rand($databases)];