mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
13 lines
282 B
Bash
13 lines
282 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
set -euo pipefail
|
||
|
|
|
||
|
|
BASE_DIR="$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")" && pwd)"
|
||
|
|
ENV_FILE="$BASE_DIR/api/.env"
|
||
|
|
|
||
|
|
if [[ -f "$ENV_FILE" ]]; then
|
||
|
|
set -a && . "$ENV_FILE" && set +a
|
||
|
|
fi
|
||
|
|
|
||
|
|
cd "$BASE_DIR"
|
||
|
|
exec alembic -c "$BASE_DIR/api/alembic.ini" upgrade head
|