Using packed keys instead of actor-tags table.

This commit is contained in:
2026-07-03 02:15:04 +02:00
parent 287932d9d7
commit 1543bf9d03
4 changed files with 55 additions and 23 deletions

View File

@@ -25,6 +25,7 @@ async function init() {
actor_ids multi,
actors text,
tag_ids multi,
assigned_tag_ids multi64,
tags text,
movie_ids multi,
movies text,
@@ -41,12 +42,15 @@ async function init() {
)`);
await utilsApi.sql('drop table if exists scenes_tags');
/* legacy, using packed decimal keys now
await utilsApi.sql(`create table scenes_tags (
id int,
scene_id int,
tag_id int,
actor_id int
)`);
*/
console.log('Recreated scenes tables, syncing scenes...');