From c6da4ebee584f0b29f807739cdc8339c28ccef22 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Sun, 12 Apr 2026 01:32:42 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20remove=20script=5Fcategories=20from=20Ph?= =?UTF-8?q?ase=204=20RLS=20=E2=80=94=20no=20account=5Fid=20column?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit script_categories is a global lookup table (shared across all tenants). The account_id column belongs to ScriptTemplate in the same model file, not ScriptCategory. The Python scan matched the file, not the class. Co-Authored-By: Claude Sonnet 4.6 --- backend/alembic/versions/b3c7e9f2a1d8_enable_rls_phase4.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/alembic/versions/b3c7e9f2a1d8_enable_rls_phase4.py b/backend/alembic/versions/b3c7e9f2a1d8_enable_rls_phase4.py index fb47878a..91f45feb 100644 --- a/backend/alembic/versions/b3c7e9f2a1d8_enable_rls_phase4.py +++ b/backend/alembic/versions/b3c7e9f2a1d8_enable_rls_phase4.py @@ -12,6 +12,9 @@ Policy variants used: Skipped intentionally: - accounts — IS the root table; no account_id column - plan_feature_defaults — platform config; no account_id column + - script_categories — global lookup table; no account_id column + (ScriptTemplate in the same file has account_id, + ScriptCategory does not) Revision ID: b3c7e9f2a1d8 Revises: 172ad76d7d20 @@ -54,7 +57,6 @@ _STANDARD_TABLES = [ "psa_activity_logs", "psa_member_mappings", "script_builder_sessions", - "script_categories", "session_ratings", "tree_embeddings", "user_folders",