chore: rename auth schema to piyaz_auth and bump postgres to 18#142
Merged
Conversation
…hema-pg18 # Conflicts: # open-next.config.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Task Reference: [MYMR-166]
Renames the Postgres auth schema identifier
neon_authtopiyaz_authacross all SQL, drivers, the data ring, drizzle artifacts, and tests (193 occurrences in 42 files). This avoids a collision with Neon Auth Managed's reservedneon_authschema — the project self-manages its Better Auth tables viadocker/init-auth.sqland deliberately does not use Neon Auth Managed.Also bumps the Postgres Docker base images from 17 to 18 (
docker-compose.yml,docker-compose.test.yml,.github/workflows/ci.yml) to align local/test/CI with the Piyaz production cutover (Neon PG 18.4).The
drizzle.config.tsschemaFilterstays["public"]— the auth schema is managed by raw SQL, not drizzle-kit.Type of change
Testing
bun run lint)bun run typecheck)bun test— 859 pass, 0 fail (PostgreSQL 18.4, matching prod)Notes for reviewer
PG18's official Docker image moved its data directory to a version-specific subdirectory and refuses to start when a mount targets the old
/var/lib/postgresql/datapath. The Postgres volume/tmpfs mounts in both compose files were moved to/var/lib/postgresqlper the docker-library guidance — required for the PG18 containers to boot.