Skip to content

Instantly share code, notes, and snippets.

View jnotaro's full-sized avatar

Jefferson Notaro Farias jnotaro

View GitHub Profile
@jnotaro
jnotaro / migrator.sh
Created January 26, 2017 00:05 — forked from vigneshwaranr/migrator.sh
Script to convert SQLITE dumps into PostgreSQL compatible dumps
#! /bin/sh
usage_error () {
echo 'Usage: sh migrator.sh <path to sqlite_to_postgres.py> <path to sqlite db file> <an empty dir to output dump files>'
echo
echo 'Example:'
echo '>sh migrator.sh sqlite_to_postgres.py ~/reviewboard.db /tmp/dumps'
echo
echo 'Tested on:'
echo 'Python 2.7.3'