1
0
Fork 0
mirror of synced 2024-09-14 16:38:28 +12:00

Add comments marking shareTables project attributes + header overrides as temporary

This commit is contained in:
Jake Barnby 2023-11-28 02:08:04 +13:00
parent 632c902e1c
commit 7104f9e2c8
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 2 additions and 1 deletions

View file

@ -3269,6 +3269,7 @@ $consoleCollections = array_merge([
'filters' => [],
],
[
// To be removed once all project are using shared tables
'$id' => ID::custom('shareTables'),
'type' => Database::VAR_BOOLEAN,
'format' => '',

View file

@ -144,7 +144,7 @@ App::post('/v1/projects')
// One in 20 projects use shared tables
$shareTables = !\mt_rand(0, 19);
// Allow overriding in development mode
// Allow overriding in development mode, to be removed once all project are using shared tables
if (App::isDevelopment()) {
$shareTables = (bool) $request->getHeader('x-appwrite-share-tables', false);
}