Skip to content

chore: rename auth schema to piyaz_auth and bump postgres to 18#142

Merged
FrkAk merged 3 commits into
mainfrom
migrate/piyaz-auth-schema-pg18
Jun 17, 2026
Merged

chore: rename auth schema to piyaz_auth and bump postgres to 18#142
FrkAk merged 3 commits into
mainfrom
migrate/piyaz-auth-schema-pg18

Conversation

@FrkAk

@FrkAk FrkAk commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary

Task Reference: [MYMR-166]

Renames the Postgres auth schema identifier neon_auth to piyaz_auth across all SQL, drivers, the data ring, drizzle artifacts, and tests (193 occurrences in 42 files). This avoids a collision with Neon Auth Managed's reserved neon_auth schema — the project self-manages its Better Auth tables via docker/init-auth.sql and 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.ts schemaFilter stays ["public"] — the auth schema is managed by raw SQL, not drizzle-kit.

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation

Testing

  • Linting passes (bun run lint)
  • Typecheck passes (bun run typecheck)
  • Full suite passes on PG18: 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/data path. The Postgres volume/tmpfs mounts in both compose files were moved to /var/lib/postgresql per the docker-library guidance — required for the PG18 containers to boot.

Base automatically changed from rebrand/piyaz-cloudflare to main June 17, 2026 22:16
…hema-pg18

# Conflicts:
#	open-next.config.ts
@FrkAk FrkAk merged commit 6208fd5 into main Jun 17, 2026
4 checks passed
@FrkAk FrkAk deleted the migrate/piyaz-auth-schema-pg18 branch June 17, 2026 22:32
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