[PR #4442] [CLOSED] fix(drizzle): add withtimezone true for postgres generators. #30988

Closed
opened 2026-04-17 21:57:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4442
Author: @JuanPabloGilA
Created: 9/4/2025
Status: Closed

Base: canaryHead: main


📝 Commits (10+)

  • dbaae0a docs: hero section alignment with feature section on big screens (#4018)
  • ef481d8 chore: fix broken testomnial link
  • 9c46196 fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization
  • 5fdf5cd chore: update sso docs
  • efa60af chore: fix import typo
  • 3fd8581 docs: hero section alignment with feature section on big screens (#4018)
  • 64216f1 chore: fix broken testomnial link
  • 28e331a fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization
  • efa0c0b chore: update sso docs
  • 95f9e9a chore: fix import typo

📊 Changes

36 files changed (+1496 additions, -173 deletions)

View changed files

📝 docs/app/global.css (+1 -1)
📝 docs/components/api-method.tsx (+1 -1)
📝 docs/components/endpoint.tsx (+0 -20)
📝 docs/components/sidebar-content.tsx (+22 -5)
📝 docs/components/ui/code-block.tsx (+1 -1)
docs/components/ui/dynamic-code-block.tsx (+124 -0)
docs/content/blogs/0-supabase-auth-to-planetscale-migration.mdx (+370 -0)
📝 docs/content/docs/authentication/google.mdx (+1 -1)
📝 docs/content/docs/concepts/client.mdx (+2 -2)
📝 docs/content/docs/concepts/users-accounts.mdx (+2 -2)
docs/content/docs/guides/auth0-migration-guide.mdx (+654 -0)
📝 docs/content/docs/installation.mdx (+1 -1)
📝 docs/content/docs/integrations/remix.mdx (+2 -2)
📝 docs/content/docs/integrations/svelte-kit.mdx (+1 -1)
📝 docs/content/docs/plugins/2fa.mdx (+2 -0)
📝 docs/content/docs/plugins/admin.mdx (+44 -39)
📝 docs/content/docs/plugins/community-plugins.mdx (+2 -0)
📝 docs/content/docs/plugins/oauth-proxy.mdx (+1 -1)
📝 docs/content/docs/plugins/organization.mdx (+2 -2)
📝 docs/content/docs/plugins/username.mdx (+62 -39)

...and 16 more files

📄 Description

  • Updated test snapshots to reflect the corrected generated code
  • All tests now pass successfully

Fixes issue where PostgreSQL timestamp fields had invalid syntax:

  • After: timestamp('name', { withTimezone: true })

Summary by cubic

Fix Postgres timestamp generation in the CLI (Drizzle) to use timezone-aware fields and correct syntax, updating all snapshots. Also adds an Admin getUser endpoint and ships notable docs updates (Auth0 migration guide, new code block component).

  • New Features

    • Admin: add GET /admin/get-user with permission checks, new error code, and tests.
    • Docs: add Auth0 migration guide and Supabase→PlanetScale blog; introduce DynamicCodeBlock; sidebar/resources/community updates and minor UI polish.
    • Release: bump packages to v1.3.8.
  • Bug Fixes

    • CLI (Drizzle): PostgreSQL now emits timestamp('name', { withTimezone: true }) with correct syntax; updated snapshots.
    • Docs: assorted fixes (typos, imports, SvelteKit note, code block improvements).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4442 **Author:** [@JuanPabloGilA](https://github.com/JuanPabloGilA) **Created:** 9/4/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `main` --- ### 📝 Commits (10+) - [`dbaae0a`](https://github.com/better-auth/better-auth/commit/dbaae0ab2bc39de87dd4719e37f48e4b94ea2262) docs: hero section alignment with feature section on big screens (#4018) - [`ef481d8`](https://github.com/better-auth/better-auth/commit/ef481d8dcce32d377b412ad1a96ecb8e604c1787) chore: fix broken testomnial link - [`9c46196`](https://github.com/better-auth/better-auth/commit/9c4619626856bd4adbaa4564dd8c110921b1f498) fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization - [`5fdf5cd`](https://github.com/better-auth/better-auth/commit/5fdf5cd31a6099ee96e922470eca8adf92c5bc51) chore: update sso docs - [`efa60af`](https://github.com/better-auth/better-auth/commit/efa60af1c2d45a735ed397171bfca513b7e202ca) chore: fix import typo - [`3fd8581`](https://github.com/better-auth/better-auth/commit/3fd858163a393153386c4bb2795abfacd09f091e) docs: hero section alignment with feature section on big screens (#4018) - [`64216f1`](https://github.com/better-auth/better-auth/commit/64216f13250200169717f47225a17df08d2fee2a) chore: fix broken testomnial link - [`28e331a`](https://github.com/better-auth/better-auth/commit/28e331a114ad0cb4e5968c29685c2f7e24187fcc) fix(sso): [⚠︎Security] - membership check should be required before allowing users to create sso for an organization - [`efa0c0b`](https://github.com/better-auth/better-auth/commit/efa0c0ba1b4793d14a2f3f355a82e4086ed4338a) chore: update sso docs - [`95f9e9a`](https://github.com/better-auth/better-auth/commit/95f9e9a39a5b3ca5192dcd174025da1427f01458) chore: fix import typo ### 📊 Changes **36 files changed** (+1496 additions, -173 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/global.css` (+1 -1) 📝 `docs/components/api-method.tsx` (+1 -1) 📝 `docs/components/endpoint.tsx` (+0 -20) 📝 `docs/components/sidebar-content.tsx` (+22 -5) 📝 `docs/components/ui/code-block.tsx` (+1 -1) ➕ `docs/components/ui/dynamic-code-block.tsx` (+124 -0) ➕ `docs/content/blogs/0-supabase-auth-to-planetscale-migration.mdx` (+370 -0) 📝 `docs/content/docs/authentication/google.mdx` (+1 -1) 📝 `docs/content/docs/concepts/client.mdx` (+2 -2) 📝 `docs/content/docs/concepts/users-accounts.mdx` (+2 -2) ➕ `docs/content/docs/guides/auth0-migration-guide.mdx` (+654 -0) 📝 `docs/content/docs/installation.mdx` (+1 -1) 📝 `docs/content/docs/integrations/remix.mdx` (+2 -2) 📝 `docs/content/docs/integrations/svelte-kit.mdx` (+1 -1) 📝 `docs/content/docs/plugins/2fa.mdx` (+2 -0) 📝 `docs/content/docs/plugins/admin.mdx` (+44 -39) 📝 `docs/content/docs/plugins/community-plugins.mdx` (+2 -0) 📝 `docs/content/docs/plugins/oauth-proxy.mdx` (+1 -1) 📝 `docs/content/docs/plugins/organization.mdx` (+2 -2) 📝 `docs/content/docs/plugins/username.mdx` (+62 -39) _...and 16 more files_ </details> ### 📄 Description - Updated test snapshots to reflect the corrected generated code - All tests now pass successfully Fixes issue where PostgreSQL timestamp fields had invalid syntax: - After: timestamp('name', { withTimezone: true }) <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fix Postgres timestamp generation in the CLI (Drizzle) to use timezone-aware fields and correct syntax, updating all snapshots. Also adds an Admin getUser endpoint and ships notable docs updates (Auth0 migration guide, new code block component). - **New Features** - Admin: add GET /admin/get-user with permission checks, new error code, and tests. - Docs: add Auth0 migration guide and Supabase→PlanetScale blog; introduce DynamicCodeBlock; sidebar/resources/community updates and minor UI polish. - Release: bump packages to v1.3.8. - **Bug Fixes** - CLI (Drizzle): PostgreSQL now emits timestamp('name', { withTimezone: true }) with correct syntax; updated snapshots. - Docs: assorted fixes (typos, imports, SvelteKit note, code block improvements). <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 21:57:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#30988