mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-30 10:11:23 +02:00
Merge pull request #327 from kibao/hotfix/save_drone_yml-migration
Update buildscript for old builds
This commit is contained in:
commit
d7f150de7c
@ -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 New Issue
Block a user