type
PluginMigration
type PluginMigration struct {
// Version starts at 1 and increments without gaps.
Version uint32
// Name is a stable lowercase kebab-case review label.
Name string
// UpSQL executes in order when entering Version.
UpSQL []string
// DownSQL executes in order when leaving Version.
DownSQL []string
}One immutable contiguous reversible adapter-specific transition.
Versionuint32- Contiguous version starting at 1.
Namestring- Stable lowercase kebab-case review label.
UpSQL[]string- Statements executed in order when entering Version.
DownSQL[]string- Statements executed in order when leaving Version.
Versions start at 1 without gaps. Ridu copies the SQL into migration artifacts and rejects changed history before execution.