github.com/fasmat/pop@v4.13.1+incompatible/schema_migrations.go (about) 1 // +build !appengine 2 3 package pop 4 5 import ( 6 "fmt" 7 8 "github.com/gobuffalo/fizz" 9 ) 10 11 func newSchemaMigrations(name string) fizz.Table { 12 return fizz.Table{ 13 Name: name, 14 Columns: []fizz.Column{ 15 { 16 Name: "version", 17 ColType: "string", 18 Options: map[string]interface{}{ 19 "size": 14, // len(YYYYMMDDhhmmss) 20 }, 21 }, 22 }, 23 Indexes: []fizz.Index{ 24 {Name: fmt.Sprintf("%s_version_idx", name), Columns: []string{"version"}, Unique: true}, 25 }, 26 } 27 }