fix: mysql indexes issue
This commit is contained in:
parent
12b1ecfcf9
commit
1a9c4e3756
2 changed files with 120 additions and 84 deletions
|
@ -2896,7 +2896,7 @@ $collections = [
|
||||||
'$id' => 'compression',
|
'$id' => 'compression',
|
||||||
'type' => Database::VAR_STRING,
|
'type' => Database::VAR_STRING,
|
||||||
'signed' => true,
|
'signed' => true,
|
||||||
'size' => 10,
|
'size' => 128,
|
||||||
'format' => '',
|
'format' => '',
|
||||||
'filters' => [],
|
'filters' => [],
|
||||||
'required' => true,
|
'required' => true,
|
||||||
|
@ -3379,62 +3379,62 @@ $collections = [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'indexes' => [
|
'indexes' => [
|
||||||
[
|
// [
|
||||||
'$id' => ID::custom('_key_search'),
|
// '$id' => ID::custom('_key_search'),
|
||||||
'type' => Database::INDEX_FULLTEXT,
|
// 'type' => Database::INDEX_FULLTEXT,
|
||||||
'attributes' => ['search'],
|
// 'attributes' => ['search'],
|
||||||
'lengths' => [],
|
// 'lengths' => [],
|
||||||
'orders' => [Database::ORDER_ASC],
|
// 'orders' => [Database::ORDER_ASC],
|
||||||
],
|
// ],
|
||||||
[
|
// [
|
||||||
'$id' => ID::custom('_key_bucket'),
|
// '$id' => ID::custom('_key_bucket'),
|
||||||
'type' => Database::INDEX_KEY,
|
// 'type' => Database::INDEX_KEY,
|
||||||
'attributes' => ['bucketId'],
|
// 'attributes' => ['bucketId'],
|
||||||
'lengths' => [Database::LENGTH_KEY],
|
// 'lengths' => [Database::LENGTH_KEY],
|
||||||
'orders' => [Database::ORDER_ASC],
|
// 'orders' => [Database::ORDER_ASC],
|
||||||
],
|
// ],
|
||||||
[
|
// [
|
||||||
'$id' => ID::custom('_key_name'),
|
// '$id' => ID::custom('_key_name'),
|
||||||
'type' => Database::INDEX_KEY,
|
// 'type' => Database::INDEX_KEY,
|
||||||
'attributes' => ['name'],
|
// 'attributes' => ['name'],
|
||||||
'lengths' => [],
|
// 'lengths' => [],
|
||||||
'orders' => [Database::ORDER_ASC],
|
// 'orders' => [Database::ORDER_ASC],
|
||||||
],
|
// ],
|
||||||
[
|
// [
|
||||||
'$id' => ID::custom('_key_signature'),
|
// '$id' => ID::custom('_key_signature'),
|
||||||
'type' => Database::INDEX_KEY,
|
// 'type' => Database::INDEX_KEY,
|
||||||
'attributes' => ['signature'],
|
// 'attributes' => ['signature'],
|
||||||
'lengths' => [],
|
// 'lengths' => [],
|
||||||
'orders' => [Database::ORDER_ASC],
|
// 'orders' => [Database::ORDER_ASC],
|
||||||
],
|
// ],
|
||||||
[
|
// [
|
||||||
'$id' => ID::custom('_key_mimeType'),
|
// '$id' => ID::custom('_key_mimeType'),
|
||||||
'type' => Database::INDEX_KEY,
|
// 'type' => Database::INDEX_KEY,
|
||||||
'attributes' => ['mimeType'],
|
// 'attributes' => ['mimeType'],
|
||||||
'lengths' => [127],
|
// 'lengths' => [127],
|
||||||
'orders' => [Database::ORDER_ASC],
|
// 'orders' => [Database::ORDER_ASC],
|
||||||
],
|
// ],
|
||||||
[
|
// [
|
||||||
'$id' => ID::custom('_key_sizeOriginal'),
|
// '$id' => ID::custom('_key_sizeOriginal'),
|
||||||
'type' => Database::INDEX_KEY,
|
// 'type' => Database::INDEX_KEY,
|
||||||
'attributes' => ['sizeOriginal'],
|
// 'attributes' => ['sizeOriginal'],
|
||||||
'lengths' => [],
|
// 'lengths' => [],
|
||||||
'orders' => [Database::ORDER_ASC],
|
// 'orders' => [Database::ORDER_ASC],
|
||||||
],
|
// ],
|
||||||
[
|
// [
|
||||||
'$id' => ID::custom('_key_chunksTotal'),
|
// '$id' => ID::custom('_key_chunksTotal'),
|
||||||
'type' => Database::INDEX_KEY,
|
// 'type' => Database::INDEX_KEY,
|
||||||
'attributes' => ['chunksTotal'],
|
// 'attributes' => ['chunksTotal'],
|
||||||
'lengths' => [],
|
// 'lengths' => [],
|
||||||
'orders' => [Database::ORDER_ASC],
|
// 'orders' => [Database::ORDER_ASC],
|
||||||
],
|
// ],
|
||||||
[
|
// [
|
||||||
'$id' => ID::custom('_key_chunksUploaded'),
|
// '$id' => ID::custom('_key_chunksUploaded'),
|
||||||
'type' => Database::INDEX_KEY,
|
// 'type' => Database::INDEX_KEY,
|
||||||
'attributes' => ['chunksUploaded'],
|
// 'attributes' => ['chunksUploaded'],
|
||||||
'lengths' => [],
|
// 'lengths' => [],
|
||||||
'orders' => [Database::ORDER_ASC],
|
// 'orders' => [Database::ORDER_ASC],
|
||||||
],
|
// ],
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -10,30 +10,6 @@ x-logging: &x-logging
|
||||||
max-file: '5'
|
max-file: '5'
|
||||||
max-size: '10m'
|
max-size: '10m'
|
||||||
|
|
||||||
x-env-storage: &x-env-storage |-
|
|
||||||
_APP_STORAGE_DEVICE
|
|
||||||
_APP_STORAGE_S3_ACCESS_KEY
|
|
||||||
_APP_STORAGE_S3_SECRET
|
|
||||||
_APP_STORAGE_S3_REGION
|
|
||||||
_APP_STORAGE_S3_BUCKET
|
|
||||||
_APP_STORAGE_DO_SPACES_ACCESS_KEY
|
|
||||||
_APP_STORAGE_DO_SPACES_SECRET
|
|
||||||
_APP_STORAGE_DO_SPACES_REGION
|
|
||||||
_APP_STORAGE_DO_SPACES_BUCKET
|
|
||||||
_APP_STORAGE_BACKBLAZE_ACCESS_KEY
|
|
||||||
_APP_STORAGE_BACKBLAZE_SECRET
|
|
||||||
_APP_STORAGE_BACKBLAZE_REGION
|
|
||||||
_APP_STORAGE_BACKBLAZE_BUCKET
|
|
||||||
_APP_STORAGE_DO_SPACES_BUCKET
|
|
||||||
_APP_STORAGE_LINODE_ACCESS_KEY
|
|
||||||
_APP_STORAGE_LINODE_SECRET
|
|
||||||
_APP_STORAGE_LINODE_REGION
|
|
||||||
_APP_STORAGE_LINODE_BUCKET
|
|
||||||
_APP_STORAGE_WASABI_ACCESS_KEY
|
|
||||||
_APP_STORAGE_WASABI_SECRET
|
|
||||||
_APP_STORAGE_WASABI_REGION
|
|
||||||
_APP_STORAGE_WASABI_BUCKET
|
|
||||||
|
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
@ -154,7 +130,27 @@ services:
|
||||||
- _APP_STORAGE_ANTIVIRUS
|
- _APP_STORAGE_ANTIVIRUS
|
||||||
- _APP_STORAGE_ANTIVIRUS_HOST
|
- _APP_STORAGE_ANTIVIRUS_HOST
|
||||||
- _APP_STORAGE_ANTIVIRUS_PORT
|
- _APP_STORAGE_ANTIVIRUS_PORT
|
||||||
- *x-env-storage
|
- _APP_STORAGE_DEVICE
|
||||||
|
- _APP_STORAGE_S3_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_S3_SECRET
|
||||||
|
- _APP_STORAGE_S3_REGION
|
||||||
|
- _APP_STORAGE_S3_BUCKET
|
||||||
|
- _APP_STORAGE_DO_SPACES_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_DO_SPACES_SECRET
|
||||||
|
- _APP_STORAGE_DO_SPACES_REGION
|
||||||
|
- _APP_STORAGE_DO_SPACES_BUCKET
|
||||||
|
- _APP_STORAGE_BACKBLAZE_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_BACKBLAZE_SECRET
|
||||||
|
- _APP_STORAGE_BACKBLAZE_REGION
|
||||||
|
- _APP_STORAGE_BACKBLAZE_BUCKET
|
||||||
|
- _APP_STORAGE_LINODE_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_LINODE_SECRET
|
||||||
|
- _APP_STORAGE_LINODE_REGION
|
||||||
|
- _APP_STORAGE_LINODE_BUCKET
|
||||||
|
- _APP_STORAGE_WASABI_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_WASABI_SECRET
|
||||||
|
- _APP_STORAGE_WASABI_REGION
|
||||||
|
- _APP_STORAGE_WASABI_BUCKET
|
||||||
- _APP_FUNCTIONS_SIZE_LIMIT
|
- _APP_FUNCTIONS_SIZE_LIMIT
|
||||||
- _APP_FUNCTIONS_TIMEOUT
|
- _APP_FUNCTIONS_TIMEOUT
|
||||||
- _APP_FUNCTIONS_BUILD_TIMEOUT
|
- _APP_FUNCTIONS_BUILD_TIMEOUT
|
||||||
|
@ -311,7 +307,27 @@ services:
|
||||||
- _APP_DB_SCHEMA
|
- _APP_DB_SCHEMA
|
||||||
- _APP_DB_USER
|
- _APP_DB_USER
|
||||||
- _APP_DB_PASS
|
- _APP_DB_PASS
|
||||||
- *x-env-storage
|
- _APP_STORAGE_DEVICE
|
||||||
|
- _APP_STORAGE_S3_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_S3_SECRET
|
||||||
|
- _APP_STORAGE_S3_REGION
|
||||||
|
- _APP_STORAGE_S3_BUCKET
|
||||||
|
- _APP_STORAGE_DO_SPACES_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_DO_SPACES_SECRET
|
||||||
|
- _APP_STORAGE_DO_SPACES_REGION
|
||||||
|
- _APP_STORAGE_DO_SPACES_BUCKET
|
||||||
|
- _APP_STORAGE_BACKBLAZE_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_BACKBLAZE_SECRET
|
||||||
|
- _APP_STORAGE_BACKBLAZE_REGION
|
||||||
|
- _APP_STORAGE_BACKBLAZE_BUCKET
|
||||||
|
- _APP_STORAGE_LINODE_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_LINODE_SECRET
|
||||||
|
- _APP_STORAGE_LINODE_REGION
|
||||||
|
- _APP_STORAGE_LINODE_BUCKET
|
||||||
|
- _APP_STORAGE_WASABI_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_WASABI_SECRET
|
||||||
|
- _APP_STORAGE_WASABI_REGION
|
||||||
|
- _APP_STORAGE_WASABI_BUCKET
|
||||||
- _APP_LOGGING_PROVIDER
|
- _APP_LOGGING_PROVIDER
|
||||||
- _APP_LOGGING_CONFIG
|
- _APP_LOGGING_CONFIG
|
||||||
- _APP_EXECUTOR_SECRET
|
- _APP_EXECUTOR_SECRET
|
||||||
|
@ -488,7 +504,27 @@ services:
|
||||||
- OPEN_RUNTIMES_NETWORK
|
- OPEN_RUNTIMES_NETWORK
|
||||||
- _APP_LOGGING_PROVIDER
|
- _APP_LOGGING_PROVIDER
|
||||||
- _APP_LOGGING_CONFIG
|
- _APP_LOGGING_CONFIG
|
||||||
- *x-env-storage
|
- _APP_STORAGE_DEVICE
|
||||||
|
- _APP_STORAGE_S3_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_S3_SECRET
|
||||||
|
- _APP_STORAGE_S3_REGION
|
||||||
|
- _APP_STORAGE_S3_BUCKET
|
||||||
|
- _APP_STORAGE_DO_SPACES_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_DO_SPACES_SECRET
|
||||||
|
- _APP_STORAGE_DO_SPACES_REGION
|
||||||
|
- _APP_STORAGE_DO_SPACES_BUCKET
|
||||||
|
- _APP_STORAGE_BACKBLAZE_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_BACKBLAZE_SECRET
|
||||||
|
- _APP_STORAGE_BACKBLAZE_REGION
|
||||||
|
- _APP_STORAGE_BACKBLAZE_BUCKET
|
||||||
|
- _APP_STORAGE_LINODE_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_LINODE_SECRET
|
||||||
|
- _APP_STORAGE_LINODE_REGION
|
||||||
|
- _APP_STORAGE_LINODE_BUCKET
|
||||||
|
- _APP_STORAGE_WASABI_ACCESS_KEY
|
||||||
|
- _APP_STORAGE_WASABI_SECRET
|
||||||
|
- _APP_STORAGE_WASABI_REGION
|
||||||
|
- _APP_STORAGE_WASABI_BUCKET
|
||||||
- DOCKERHUB_PULL_USERNAME
|
- DOCKERHUB_PULL_USERNAME
|
||||||
- DOCKERHUB_PULL_PASSWORD
|
- DOCKERHUB_PULL_PASSWORD
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue