File tree Expand file tree Collapse file tree
packages/express-context/src/loaders Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,15 +16,8 @@ import { createModuleLoader } from './create-loader';
1616
1717// ─── SQL ────────────────────────────────────────────────────────────────────
1818
19- // The column was renamed auth_settings_table -> auth_settings_table_name
20- // (Graphile inflection collision with auth_settings_table_id); read whichever
21- // exists so the server works against both old and new metaschema versions.
2219const AUTH_SETTINGS_DISCOVERY_SQL = `
23- SELECT s.schema_name,
24- coalesce(
25- to_jsonb(sm) ->> 'auth_settings_table_name',
26- to_jsonb(sm) ->> 'auth_settings_table'
27- ) AS table_name
20+ SELECT s.schema_name, sm.auth_settings_table_name AS table_name
2821 FROM metaschema_modules_public.sessions_module sm
2922 JOIN metaschema_public.schema s ON s.id = sm.schema_id
3023 LIMIT 1
You can’t perform that action at this time.
0 commit comments