mirror of
https://github.com/block/buzz.git
synced 2026-10-27 12:40:30 +00:00
feat: migrate from MySQL to Postgres with pgschema (#114)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Tyler Longwell <tlongwell@squareup.com>
This commit is contained in:
20
.env.example
20
.env.example
@@ -7,7 +7,7 @@
|
||||
# All defaults here work with `docker compose up` out of the box.
|
||||
#
|
||||
# Service ports (defaults):
|
||||
# MySQL → localhost:3306
|
||||
# Postgres → localhost:5432
|
||||
# Redis → localhost:6379
|
||||
# Typesense → localhost:8108
|
||||
# Adminer → localhost:8082 (DB browser UI)
|
||||
@@ -16,13 +16,14 @@
|
||||
# =============================================================================
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Database (MySQL 8.0)
|
||||
# Database (Postgres 17)
|
||||
# -----------------------------------------------------------------------------
|
||||
DATABASE_URL=mysql://sprout:sprout_dev@localhost:3306/sprout
|
||||
MYSQL_ROOT_PASSWORD=sprout_dev
|
||||
MYSQL_USER=sprout
|
||||
MYSQL_PASSWORD=sprout_dev
|
||||
MYSQL_DATABASE=sprout
|
||||
DATABASE_URL=postgres://sprout:sprout_dev@localhost:5432/sprout
|
||||
PGHOST=localhost
|
||||
PGPORT=5432
|
||||
PGUSER=sprout
|
||||
PGPASSWORD=sprout_dev
|
||||
PGDATABASE=sprout
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Redis 7
|
||||
@@ -88,11 +89,6 @@ RUST_LOG=sprout_relay=debug,sprout_db=debug,sprout_auth=debug,sprout_pubsub=debu
|
||||
# OTLP tracing endpoint (optional — leave unset to disable)
|
||||
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# sqlx (offline mode for Docker builds — set to true in CI/Docker)
|
||||
# -----------------------------------------------------------------------------
|
||||
SQLX_OFFLINE=false
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Huddle (LiveKit integration)
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user