From 5b827169866a09bd78fad6b87844a032956daf17 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 20 May 2024 14:00:48 +1200 Subject: [PATCH 1/2] Change from 1 in 20 to 1 in 5 projects on shared tables DB --- app/controllers/api/projects.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index c51697bf95..5464014b48 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -152,10 +152,10 @@ App::post('/v1/projects') throw new Exception(Exception::PROJECT_RESERVED_PROJECT, "'console' is a reserved project."); } - // TODO: One in 20 projects use shared tables. Temporary until all projects are using shared tables. + // TODO: 1 in 5 projects use shared tables. Temporary until all projects are using shared tables. if ( ( - !\mt_rand(0, 19) + !\mt_rand(0, 4) && System::getEnv('_APP_DATABASE_SHARED_TABLES', 'enabled') === 'enabled' && System::getEnv('_APP_EDITION', 'self-hosted') !== 'self-hosted' ) || From 537e2ead3c2590a55bd48da875c3703c1659f85b Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 20 May 2024 14:24:09 +1200 Subject: [PATCH 2/2] Update database --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 7fc372d624..30d5ed74e0 100644 --- a/composer.lock +++ b/composer.lock @@ -1556,16 +1556,16 @@ }, { "name": "utopia-php/database", - "version": "0.49.9", + "version": "0.49.10", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "ee93c14b99820f791c669648854f094fe399a085" + "reference": "216209121bc97a2010f67a39c561fafe1e936bec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/ee93c14b99820f791c669648854f094fe399a085", - "reference": "ee93c14b99820f791c669648854f094fe399a085", + "url": "https://api.github.com/repos/utopia-php/database/zipball/216209121bc97a2010f67a39c561fafe1e936bec", + "reference": "216209121bc97a2010f67a39c561fafe1e936bec", "shasum": "" }, "require": { @@ -1606,9 +1606,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/0.49.9" + "source": "https://github.com/utopia-php/database/tree/0.49.10" }, - "time": "2024-05-12T23:58:34+00:00" + "time": "2024-05-20T02:14:20+00:00" }, { "name": "utopia-php/domains",