Skip to content
Snippets Groups Projects
Commit 692bb679 authored by Ben Bodenmiller's avatar Ben Bodenmiller
Browse files

use gitlab branch of mysql-postgresql-converter

parent 0a34f2dc
Branches
Tags
No related merge requests found
Loading
@@ -11,7 +11,7 @@ sudo service gitlab stop
Loading
@@ -11,7 +11,7 @@ sudo service gitlab stop
   
# Update /home/git/gitlab/config/database.yml # Update /home/git/gitlab/config/database.yml
   
git clone https://github.com/gitlabhq/mysql-postgresql-converter.git git clone https://github.com/gitlabhq/mysql-postgresql-converter.git -b gitlab
cd mysql-postgresql-converter cd mysql-postgresql-converter
mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production -p mysqldump --compatible=postgresql --default-character-set=utf8 -r databasename.mysql -u root gitlabhq_production -p
python db_converter.py databasename.mysql databasename.psql python db_converter.py databasename.mysql databasename.psql
Loading
@@ -38,7 +38,7 @@ On non-omnibus installations (distributed using Git) we retrieve the index decla
Loading
@@ -38,7 +38,7 @@ On non-omnibus installations (distributed using Git) we retrieve the index decla
``` ```
# Clone the database converter on your Postgres-backed GitLab server # Clone the database converter on your Postgres-backed GitLab server
cd /tmp cd /tmp
git clone https://github.com/gitlabhq/mysql-postgresql-converter.git git clone https://github.com/gitlabhq/mysql-postgresql-converter.git -b gitlab
   
cd /home/git/gitlab cd /home/git/gitlab
   
Loading
@@ -59,7 +59,7 @@ On omnibus-gitlab we need to get the index declarations from a file called `sche
Loading
@@ -59,7 +59,7 @@ On omnibus-gitlab we need to get the index declarations from a file called `sche
``` ```
# Clone the database converter on your Postgres-backed GitLab server # Clone the database converter on your Postgres-backed GitLab server
cd /tmp cd /tmp
/opt/gitlab/embedded/bin/git clone https://github.com/gitlabhq/mysql-postgresql-converter.git /opt/gitlab/embedded/bin/git clone https://github.com/gitlabhq/mysql-postgresql-converter.git -b gitlab
cd /tmp/mysql-postgresql-converter cd /tmp/mysql-postgresql-converter
   
# Download schema.rb.bundled if necessary # Download schema.rb.bundled if necessary
Loading
@@ -97,7 +97,7 @@ cd tmp/backups/postgresql
Loading
@@ -97,7 +97,7 @@ cd tmp/backups/postgresql
sudo -u git -H mysqldump --compatible=postgresql --default-character-set=utf8 -r gitlabhq_production.mysql -u root gitlabhq_production -p sudo -u git -H mysqldump --compatible=postgresql --default-character-set=utf8 -r gitlabhq_production.mysql -u root gitlabhq_production -p
   
# Clone the database converter # Clone the database converter
sudo -u git -H git clone https://github.com/gitlabhq/mysql-postgresql-converter.git sudo -u git -H git clone https://github.com/gitlabhq/mysql-postgresql-converter.git -b gitlab
   
# Convert gitlabhq_production.mysql # Convert gitlabhq_production.mysql
sudo -u git -H mkdir db sudo -u git -H mkdir db
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment