Skip to content

fix: Use correct auth table names (auth.users, auth.user_providers)#1

Open
edunavajas wants to merge 2 commits into
InsForge:mainfrom
edunavajas:fix/auth-table-names
Open

fix: Use correct auth table names (auth.users, auth.user_providers)#1
edunavajas wants to merge 2 commits into
InsForge:mainfrom
edunavajas:fix/auth-table-names

Conversation

@edunavajas

Copy link
Copy Markdown

The import and transform scripts reference _accounts and _account_providers, but Insforge uses auth.users and auth.user_providers. This causes the auth import to fail with "relation does not exist".

Similarly, the SQL transform was converting auth.uid() → uid() and REFERENCES "auth"."users" → REFERENCES "_accounts", but Insforge uses the same auth.uid() function and auth.users table — so those transforms aren't needed.

Changes:

  • auth/import-auth.ts: fix table names, merge profiles into JSONB
  • database/transform-sql.ts: skip unnecessary auth transforms
  • types/auth.ts: update doc comments

Tested with a full local migration (3 users, 4 tables, RLS policies)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant