pgroll/cmd
Carlos Pérez-Aradros Herce 16b1d75ee0
Add raw SQL operation (#43)
This change adds a new `sql` operation, that allows to define an `up`
SQL statement to perform a migration on the schema.

An optional `down` field can be provided, this will be used when trying
to do a rollback after (for instance, in case of migration failure).

A new trigger is installed to capture DDL events coming from direct user
manipulations (not done by pg-roll), so they are stored as a migration,
getting to know the resulting schema in all cases.
2023-08-30 11:50:59 +02:00
..
analyze.go Change module name (#60) 2023-08-22 09:27:58 +01:00
complete.go Add migrations state handling (#7) 2023-06-28 11:10:03 +02:00
init.go Add migrations state handling (#7) 2023-06-28 11:10:03 +02:00
rollback.go Add migrations state handling (#7) 2023-06-28 11:10:03 +02:00
root.go Change module name (#60) 2023-08-22 09:27:58 +01:00
start.go Add raw SQL operation (#43) 2023-08-30 11:50:59 +02:00
status.go Add raw SQL operation (#43) 2023-08-30 11:50:59 +02:00