Update Payload CMS configuration, collections (Audit, Posts), and add migration scripts/reports.
14 lines
246 B
Bash
14 lines
246 B
Bash
#!/bin/bash
|
|
# Migration wrapper script - loads .env before running tsx
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# Load .env file
|
|
if [ -f .env ]; then
|
|
export $(grep -v '^#' .env | xargs)
|
|
echo "✓ .env loaded"
|
|
fi
|
|
|
|
# Run the migration script
|
|
tsx migrate.ts "$@"
|