chore: full stack stability and migration fixes, plus react UI progress
Some checks failed
CI / podman-build (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-03-18 09:01:38 +02:00
parent 38cab8c246
commit a66d908eff
142 changed files with 12210 additions and 3402 deletions

View File

@@ -0,0 +1,19 @@
-- Move users and refresh_tokens to auth schema for better isolation and consistency
CREATE SCHEMA IF NOT EXISTS auth;
-- Move the tables (safe and idempotent)
DO $$
BEGIN
IF EXISTS (SELECT FROM pg_tables WHERE schemaname = 'public' AND tablename = 'users') THEN
ALTER TABLE public.users SET SCHEMA auth;
END IF;
IF EXISTS (SELECT FROM pg_tables WHERE schemaname = 'public' AND tablename = 'refresh_tokens') THEN
ALTER TABLE public.refresh_tokens SET SCHEMA auth;
END IF;
END $$;
-- Note: Postgres automatically updates foreign key references and indexes
-- when a table is moved to a different schema using SET SCHEMA.
-- However, we might need to update any explicit cross-schema references in the future
-- if we were to move to entirely separate databases. For now, they remain in the same DB.