woodpecker-ci / woodpecker

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

Add option to migrate database #924

Open 6543 opened 2 years ago

6543 commented 2 years ago

add sub-command to server to migrate databases. add env-far/flag to import from old db; a dedicated subcomand could be optionaly added, let's see

make it possible to migrate a sqlite3 instance into a ... MySQL and so on.

It is could happen that you at some point decide you like to scale ...

6543 commented 2 years ago

add env-var/flag to specify "migrate-from-db"

if set, open old and do run migrations, then copy to new db, else do run migrations on new db

6543 commented 1 week ago

docker.io/woodpeckerci/woodpecker-server:pull_1847 has a working import func for the one serching for it: https://github.com/woodpecker-ci/woodpecker/pull/1847