Update buildscript for old builds
This commit is contained in:
parent
c8a7b819cd
commit
632b61adbf
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ func (r *rev20140522205400) Revision() int64 {
|
|||
|
||||
func (r *rev20140522205400) Up(mg *MigrationDriver) error {
|
||||
_, err := mg.AddColumn("builds", "buildscript TEXT")
|
||||
_, err = mg.Tx.Exec("UPDATE builds SET buildscript = '' WHERE buildscript IS NULL")
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue