1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

configure companion keys

This commit is contained in:
Robin Appelman 2024-07-12 17:40:26 +02:00
commit d12d7cf592

View file

@ -73,6 +73,7 @@ impl ServiceTrait for Sharding {
"table": "filecache",
"primary_key": "fileid",
"shard_key": "storage",
"companion_keys": ["file_id"],
"companion_tables": ["filecache_extended", "files_metadata"],
"shards": [
{
@ -155,6 +156,7 @@ impl ServiceTrait for SingleShard {
"table": "filecache",
"primary_key": "fileid",
"shard_key": "storage",
"companion_keys": ["file_id"],
"companion_tables": ["filecache_extended", "files_metadata"],
"shards": [
{