-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Exporting from SQLite to MSSQL fails when trying to reimport #1405
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
Even though this might be stating the obvious: The problem is that booleans are mapped to TINYINT (I guess BIT would be more appropriate) and the inserts use true and false instead of 0 and 1 as values. When correcting this manually, you will encounter the next problem with the generated script: INDENTITY_INSERT needs to be set to ON before inserting rows:
|
dump will be deprecated and replaced by #1637 |
Does it even make sense to handle translation between databases? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Closing issue. Please open a post in the forum, or re-open this ticket if this is still an issue. |
[x]
):Description
When dumping a gitea instance setup with sqlite to be exported to mssql, the resulting SQL seems to be invalid
gitea dump --database mssql
Beginning of the gitea-db.sql with private values replaced with "XXX" for privacy
SQL-Error reported when executing:
Screenshots
If this issue involves the Web Interface, please include a screenshot
The text was updated successfully, but these errors were encountered: