# `Lotus.Migrations.Postgres.V4`
[🔗](https://github.com/elixir-lotus/lotus/blob/v1.0.0/lib/lotus/migrations/postgres/v4.ex#L1)

Rename legacy `data_repo` column to `data_source` on upgrading installs.

Fresh installs never created the `data_repo` column — V1 (updated for v1.0)
now creates `data_source` directly. This migration is a no-op for those
installs. Upgrading installs that ran V1 before the rename still have the
`data_repo` column, and the `DO $$` block below renames it in place.

# `down`

# `up`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
