-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Database Migration (upgrade from sqlite) #26862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
ESF Migration toolkit may be a solution. Just used trial version to migrate Sonar db. |
So one option is to actually use the gitea dump command since the golang db library gitea uses (xorm) can interact with 4 db dialects
by default the dump command with DUMP in the dialect of your app.ini but it can be chosen as per https://docs.gitea.com/next/administration/command-line#dump Example outputs of the sql file within the dump SQLITE3 -> SQLITE3
SQLITE3 -> MYSQL
SQLITE3 -> MSSQL
SQLITE3 -> POSTGRES
Once completed the sql file within the dump archive should be loadable into whatever db you intend to use now NOTE: if you do use xorm as the translator please ensure you have a backup of the db in its natural format (ie copy the sqlite file, mysql dump... etc) "just in case" there is a xorm export bug. |
clarify aspects of the dump command Possibly closes #26862 --------- Co-authored-by: delvh <[email protected]>
Feature Description
As far as I'm aware, there is currently no way to migrate away from sqlite to a bespoke database solution, at least not an officially supported one. Someone who starts with a small sqlite instance not expecting it to grow can find themselves in a situation where there's no clean upgrade path should the demand change.
Having an official migration tool or at least an outlined process would be a welcome addition.
Screenshots
No response
The text was updated successfully, but these errors were encountered: