1
0
Fork 0
mirror of synced 2024-06-11 23:34:45 +12:00

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 356d155df2
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

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';