Add shared tables enabled flag for quick toggle

This commit is contained in:
Jake Barnby
2024-05-07 17:29:12 +12:00
parent 74a147f3b2
commit 5bd03dd74b
+1
View File
@@ -155,6 +155,7 @@ App::post('/v1/projects')
// TODO: One in 20 projects use shared tables. Temporary until all projects are using shared tables.
if (
!\mt_rand(0, 19)
&& App::getEnv('_APP_DATABASE_SHARED_TABLES', 'enabled') === 'enabled'
&& App::getEnv('_APP_EDITION', 'self-hosted') !== 'self-hosted'
) {
$schema = 'appwrite';