Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’3y agoβ€’
2 replies
wallop

generated typescript types do not match --local with same schema

supabase gen types typescript --local --schema=public
supabase gen types typescript --local --schema=public

different output (for same migrations) in local, which breaks the recommended CICD script to check generated types are checked in with a
git diff
git diff


- supabase managed - any 1:1 foreign key relationship is marked as such (
isOneToOne: true
isOneToOne: true
), but this information is missing with
--local
--local

- supabase managed - includes (relatively recently) some new types (
Tables
Tables
,
TablesInsert
TablesInsert
,
TablesUpdate
TablesUpdate
) , missing with
--local
--local
image.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Foreign Key Creation Fails with "Column types do not match" Despite Matching int8/bigint Types
SupabaseSSupabase / help-and-questions
3mo ago
Generated Types for Dart
SupabaseSSupabase / help-and-questions
13mo ago
Generating typescript schema not working
SupabaseSSupabase / help-and-questions
4y ago
Realtime Typescript Types
SupabaseSSupabase / help-and-questions
4y ago