jackc / tern

The SQL Fan's Migrator
MIT License
925 stars 68 forks source link

Shell script migrations #47

Open jackc opened 2 years ago

jackc commented 2 years ago

It might be interesting for tern to have migrations that are simply shell scripts that can do arbitrary tasks. tern could act as a proxy to the PostgreSQL server and expose a pseudo connection via the PG* or DATABASE_URL environment variables. Then a migration could have any logic written in any language (even just using psql could be really valuable).