feat: add migrations, test scripts, and utility tools
- Add database migrations (006-028) for face recognition, identity, file_uuid - Add test scripts for ASR, face, search, processing - Add portal frontend (Tauri) - Add config, benchmark, and monitoring utilities - Add model checkpoints and pretrained model references
This commit is contained in:
19
migrations/016_rename_to_identities.sql
Normal file
19
migrations/016_rename_to_identities.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
-- 016_rename_to_identities.sql
|
||||
-- Rename 'talents' table to 'identities' and 'talent_id' to 'identity_id'
|
||||
-- This reflects the broader scope: identities can be actors, news subjects, family members, etc.
|
||||
|
||||
-- 1. Rename 'talents' table to 'identities'
|
||||
ALTER TABLE public.talents RENAME TO identities;
|
||||
ALTER TABLE dev.talents RENAME TO identities;
|
||||
|
||||
-- 2. Rename 'talent_id' column in 'identity_bindings' to 'identity_id'
|
||||
DO $$
|
||||
BEGIN
|
||||
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_schema = 'public' AND table_name = 'identity_bindings' AND column_name = 'talent_id') THEN
|
||||
ALTER TABLE public.identity_bindings RENAME COLUMN talent_id TO identity_id;
|
||||
END IF;
|
||||
|
||||
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_schema = 'dev' AND table_name = 'identity_bindings' AND column_name = 'talent_id') THEN
|
||||
ALTER TABLE dev.identity_bindings RENAME COLUMN talent_id TO identity_id;
|
||||
END IF;
|
||||
END $$;
|
||||
Reference in New Issue
Block a user