This repository has been archived on 2026-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-09-01 00:13:01 +01:00

26 lines
482 B
Go

package sqaffold
import "code.aneur.in/go/version"
func (s *Scaffold) migration() version.Migration {
return version.Migration{
"0.1.0": version.Patch{
Up: func() error {
_, err := s.Exec(`
create table sqaffold_apps (
name text not null,
version text,
constraint config__unq__name unique (name) on conflict replace
)`)
return err
},
Down: func() error {
_, err := s.Exec("drop table sqaffold_apps")
return err
},
},
}
}