Add comments marking shareTables
project attributes + header overrides as temporary
This commit is contained in:
parent
632c902e1c
commit
7104f9e2c8
2 changed files with 2 additions and 1 deletions
|
@ -3269,6 +3269,7 @@ $consoleCollections = array_merge([
|
||||||
'filters' => [],
|
'filters' => [],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
// To be removed once all project are using shared tables
|
||||||
'$id' => ID::custom('shareTables'),
|
'$id' => ID::custom('shareTables'),
|
||||||
'type' => Database::VAR_BOOLEAN,
|
'type' => Database::VAR_BOOLEAN,
|
||||||
'format' => '',
|
'format' => '',
|
||||||
|
|
|
@ -144,7 +144,7 @@ App::post('/v1/projects')
|
||||||
// One in 20 projects use shared tables
|
// One in 20 projects use shared tables
|
||||||
$shareTables = !\mt_rand(0, 19);
|
$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()) {
|
if (App::isDevelopment()) {
|
||||||
$shareTables = (bool) $request->getHeader('x-appwrite-share-tables', false);
|
$shareTables = (bool) $request->getHeader('x-appwrite-share-tables', false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue