diff --git a/Migration-from-SQLite-to-PostgreSQL.md b/Migration-from-SQLite-to-PostgreSQL.md index 3d033b6..c7df4f0 100644 --- a/Migration-from-SQLite-to-PostgreSQL.md +++ b/Migration-from-SQLite-to-PostgreSQL.md @@ -1,4 +1,12 @@ -SQLite is the default storage backend setup in the file settings.py with the block : +SQLite is the default storage backend setup. + +It's configured both in the default `etesync-server.ini` file with the following block + + [database] + engine = django.db.backends.sqlite3 + name = db.sqlite3 + +and using the Django style in `etesync_server/settings.py` with the block : DATABASES = { 'default': { @@ -38,6 +46,17 @@ You will need to setup a database to hold your data. exit ### Configure EteSync for PostgreSQL +Either using the .ini configuration file + + [database] + engine = django.db.backends.postgresql + name = etesync + user = etesync + password = etesync + host = 127.0.0.1 + port = 5432 + +Or using Django style configuration. DATABASES = { 'default': { @@ -72,4 +91,5 @@ This should end up running with no errors. `./manage.py runserver 127.0.0.1:8000` if you are behind a reverse-proxy for example -### Enjoy EteSync ! \ No newline at end of file +### Enjoy EteSync ! +