Add scripts to run migrations and to connect to the db

This commit is contained in:
2026-01-10 09:05:05 -06:00
parent 241d3e799e
commit 8cd4b42cc6
3 changed files with 62 additions and 0 deletions

9
framework/cmd.d/db Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
set -eu
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT="$DIR/../.."
# FIXME: don't hard code this of course
PGPASSWORD=diachron psql -U diachron -h localhost diachron