Changeset 0.5.0 (#35)
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
# ============================================
|
||||
# Chat Switchboard - Database Migration Runner
|
||||
# ============================================
|
||||
# NOTE: The Go backend auto-migrates on startup.
|
||||
# This script is for manual/emergency use only.
|
||||
# Canonical migration files: server/database/migrations/
|
||||
# ============================================
|
||||
# Tracks applied migrations in schema_migrations.
|
||||
# In dev (DB_WIPE=true): drops all tables, re-runs
|
||||
# all migrations for a clean slate every PR build.
|
||||
@@ -14,7 +18,7 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
MIGRATIONS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../migrations" && pwd)"
|
||||
MIGRATIONS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../server/database/migrations" && pwd)"
|
||||
|
||||
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
||||
echo "Migration runner: ${DB_NAME}"
|
||||
|
||||
Reference in New Issue
Block a user