woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.07k stars 352 forks source link

Create a lib from our migrations helper #1230

Closed anbraten closed 1 year ago

anbraten commented 1 year ago

It would be nice to use the migrations helpers from Woodpecker in other projects (exp Gitea) using xorm as well.

https://github.com/woodpecker-ci/woodpecker/blob/master/server/store/datastore/migration/common.go

6543 commented 1 year ago

https://github.com/go-gitea/gitea/blob/main/models/migrations/migrations.go#L522-L1016 is also worth a look

qwerty287 commented 1 year ago

And the migration handling itself probably too.

anbraten commented 1 year ago

Got pointed to https://github.com/techknowlogick/xormigrate