3.9 Apply the database migration

If you ran sql/setup_db.sh during PostgreSQL with pgvector you are already done. Otherwise:

cd /home/ownsona/ownsona
sql/setup_db.sh "$PGPW"
sudo -u postgres psql -d ownsona_test -f sql/001_init.sql

Confirm:

sudo -u postgres psql -d ownsona -c "\\dt"
sudo -u postgres psql -d ownsona -c "SELECT extname FROM pg_extension ORDER BY extname;"

You should see the memories table and the pg_trgm, plpgsql, and vector extensions.