a way to convert sqlite to mssql #3959

Closed
opened 2025-11-02 05:31:48 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @zuhairamahdi on GitHub (Sep 15, 2019).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Hi,

we are migrating from sqlite to MSSQL server. though now we are having a difficulties converting the gitea.db to the MSSQL formate

Screenshots

Originally created by @zuhairamahdi on GitHub (Sep 15, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [x] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description Hi, we are migrating from sqlite to MSSQL server. though now we are having a difficulties converting the `gitea.db` to the MSSQL formate ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/question label 2025-11-02 05:31:48 -06:00
Author
Owner

@jaqra commented on GitHub (Sep 16, 2019):

Can you check this question & answers?

https://stackoverflow.com/questions/163079/exporting-from-sqlite-to-sql-server

@jaqra commented on GitHub (Sep 16, 2019): Can you check this question & answers? https://stackoverflow.com/questions/163079/exporting-from-sqlite-to-sql-server
Author
Owner

@lunny commented on GitHub (Sep 17, 2019):

@jaqra That's a common subject. I think there are many tools could move data from sqlite to sql server.

@lunny commented on GitHub (Sep 17, 2019): @jaqra That's a common subject. I think there are many tools could move data from sqlite to sql server.
Author
Owner

@zuhairamahdi commented on GitHub (Sep 17, 2019):

the issue mostly is with creating the tables and keeping the indexing. I worked around this issue by creating a new instance of gitea to create the wanted database structure and then migrate the data to it. even with that there is a lot of manual work to be done for it to work.

@zuhairamahdi commented on GitHub (Sep 17, 2019): the issue mostly is with creating the tables and keeping the indexing. I worked around this issue by creating a new instance of gitea to create the wanted database structure and then migrate the data to it. even with that there is a lot of manual work to be done for it to work.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3959