Merge branch 'import_postgres_user' into 'master'

Import the database as the `git` user

See merge request !762
This commit is contained in:
Dmitriy Zaporozhets 2014-08-23 20:44:54 +00:00
commit 9b1bef54de

View file

@ -15,7 +15,9 @@ git clone https://github.com/gitlabhq/mysql-postgresql-converter.git
cd mysql-postgresql-converter cd mysql-postgresql-converter
mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production
python db_converter.py databasename.mysql databasename.psql python db_converter.py databasename.mysql databasename.psql
psql -f databasename.psql -d gitlabhq_production
# Import the database dump as the application database user
sudo -u git psql -f databasename.psql -d gitlabhq_production
# Rebuild indexes (see below) # Rebuild indexes (see below)