summaryrefslogtreecommitdiff
path: root/makima/sh/setup-db.sh
blob: 95e35acd6015991e8dbb48a26fb7d21542fec8e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Combined database setup script

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

echo "=== Setting up Makima Database ==="
echo ""

# Start PostgreSQL
echo "Step 1: Starting PostgreSQL..."
bash "${SCRIPT_DIR}/start-postgres.sh"
echo ""

# Wait a moment for full initialization
sleep 2

# Run migrations
echo "Step 2: Running migrations..."
bash "${SCRIPT_DIR}/run-migrations.sh"
echo ""

echo "=== Database setup complete! ==="