master
go 16 lines 413 Bytes
Raw
1 // Package common contains common types and interfaces for file system repository migrations
2 package common
3
4 // Options contains migration options for embedded migrations
5 type Options struct {
6 Path string
7 Verbose bool
8 }
9
10 // Migration is the interface that all migrations must implement
11 type Migration interface {
12 Versions() string
13 Apply(opts Options) error
14 Revert(opts Options) error
15 Reversible() bool
16 }