-
-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating from SQLite to Postgres issue #329
Comments
You should be using django's dumpdata and loaddata instead which convert the data to a standard format https://docs.djangoproject.com/en/3.0/ref/django-admin/#dumpdata |
Let me know @tanjyeyee if the issue isn't resolved. |
Still exists with current v3.3.0: SQlite dump is not compatible with postgres importer :( e.g.:
or:
or:
|
@jedie Did you try using the dumpdata approach that was described above? Given that Sqlite and Postgres are two different databases I'm not surprised that the datadump is not compatible. Heck, the datadump between different versions of postgres can be incompatible. So the best approach is still probably going to be the datadump that voiddragon mentioned. You might also be interested in trying pgloader -> https://pgloader.readthedocs.io/en/latest/index.html Either way it'll never be the responsibility of dbbackup to fix this compatibility. |
What's about a "plugin" in django-dbbackup to use pgloader as importer? |
I run
python manage.py dbbackup
to dump my SQLite database.Switch to Postgres database in settings.py, migrate to ensure schema is the same.
Run
python manage.py dbrestore
and I get this error:Any tips?
The text was updated successfully, but these errors were encountered: