# Gogs Database to Gitea (PostgreSQL)

**URL:** <https://forum.gitea.com/t/gogs-database-to-gitea-postgresql/980>\
**Category:** Install/Maintain/Configure\
**Created:** [February 28, 2019, 5:11pm UTC](https://forum.gitea.com/t/gogs-database-to-gitea-postgresql/980 "2019-02-28T17:11:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alih926](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@alih926](https://forum.gitea.com/u/alih926)\
**Post date:** [February 28, 2019, 5:11pm UTC](https://forum.gitea.com/t/gogs-database-to-gitea-postgresql/980/1 "2019-02-28T17:11:34Z")

</div>

I am trying to stand up our Gitea instance to replace Gogs.  
I have created a new database for Gitea (PostgreSQL) using the Gogs database as a template.  
When I try to start the process, it ends up stopping. The logs show the following:

2019/02/27 13:03:25 [I] Backing off for 3 seconds  
2019/02/27 13:03:28 [I] ORM engine initialization attempt #10/10…  
2019/02/27 13:03:28 [I] Migration: remove commits and settings unit types  
2019/02/27 13:03:28 […itea/routers/init.go:82 GlobalInit()] [E] ORM engine initialization failed: migrate: do migrate: pq: column “index” does not exist

When I create a blank, new database (let’s call it Gitea2), Gitea starts up perfectly fine. It’s just that there’s no data whatsoever.

What would be the best way to approach this issue? I have dumped the Gogs database to a .txt file, but I’m not sure where to go from there.
