Graham
2aab020e67
Use int for master index ids consistently
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
5d8f89e319
Add master_index_valid_{indexes,groups} views to reduce duplication
...
The CTE is now declared as NOT MATERIALIZED to ensure Postgres is able
to push the WHERE master_index_id condition inside it.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
91d4e46c89
Rename GroupKey to Key
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
eae9a3e2f4
Remove master index digest column from the web page
...
It isn't really necessary now we have the download links.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
619424321f
Add index version consistency check
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
1c061c0f66
Store master index format in the database
...
We can't reliably infer it based on the contents of the container.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
4154e4fdb4
Store non-truncated versions in the archiving service if available
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
cbeb9a3a67
Add mapsquare key for compatibility with Polar's XTEA key files
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
412d6f4c1f
Add XTEA key export endpoint
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
a19a69b21e
Add name and description to the master_indexes table
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
47127113f4
Add initial archiving service web interface
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
a3593e9326
Rename master_index_entries to master_index_archives
...
This naming is a bit more consistent with the index_groups and
index_files tables.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
4ba78e26b9
Create .idx files for empty indexes
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
273f7eddf8
Use a CTE to reduce duplication in CacheExporter
...
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
9834dccfdd
Add indexes to the groups table
...
This will reduce the impact of checksum/version collisions, as a
collision would have to happen between two indexes of the same archive
rather than any two indexes.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
4e90bd76b5
Remove the cache and cache_index tables
...
These effectively duplicate the master index tables, but in a less
flexible manner - as they don't support importing a master index where
some of the indexes are missing.
This commit also combines MasterIndexImporter with CacheImporter, to
make it easier to re-use code.
Signed-off-by: Graham <gpe@openrs2.org>
3 years ago
Graham
fc1af29bdf
Make BATCH_SIZE const
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
f143eef142
Move Kotlin files from src/{main,test}/java to src/{main,test}/kotlin
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
ce5b76ef0f
Rename dev.openrs2 package to org.openrs2
...
Signed-off-by: Graham <gpe@openrs2.org>
4 years ago
Graham
d755d486d6
Add initial cache and XTEA key archiving service
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago