Lotus.Migrations.Postgres.V4 (Lotus v1.0.0)

Copy Markdown View Source

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.

Summary

Functions

down(opts \\ %{})

up(opts \\ %{})