github.com/marinho/drone@v0.2.1-0.20140504195434-d3ba962e89a7/pkg/database/migrate/201402200603_rename_privelege_to_privilege.go (about) 1 package migrate 2 3 type Rev1 struct{} 4 5 var RenamePrivelegedToPrivileged = &Rev1{} 6 7 func (r *Rev1) Revision() int64 { 8 return 201402200603 9 } 10 11 func (r *Rev1) Up(mg *MigrationDriver) error { 12 _, err := mg.RenameColumns("repos", map[string]string{ 13 "priveleged": "privileged", 14 }) 15 return err 16 } 17 18 func (r *Rev1) Down(mg *MigrationDriver) error { 19 _, err := mg.RenameColumns("repos", map[string]string{ 20 "privileged": "priveleged", 21 }) 22 return err 23 }