github.com/shoshinnikita/budget-manager@v0.7.1-0.20220131195411-8c46ff1c6778/internal/db/pg/migrations/migrations.go (about)

     1  package migrations
     2  
     3  import "github.com/lopezator/migrator"
     4  
     5  func GetMigrations() []*migrator.Migration {
     6  	return []*migrator.Migration{
     7  		{
     8  			Name: "init",
     9  			Func: initMigration,
    10  		},
    11  		{
    12  			Name: "add NOT NULL constraints",
    13  			Func: addNotNullMigration,
    14  		},
    15  		{
    16  			Name: "add FOREIGN KEY constraints",
    17  			Func: addForeignKeysMigration,
    18  		},
    19  		{
    20  			Name: "add support of nested types",
    21  			Func: addParentIDToSpendTypesMigration,
    22  		},
    23  	}
    24  }