0

I am trying to move dumped data from postgresql database to another. However, when syncdb is run on django, it inserts some values into the database. When I then want to insert the dump into the database, I get conflicts. What is the right way of moving some data from one django built database to another?

1
  • 1
    Do you have any reason not to dump the schema and the data and use that without running syncdb? Commented Jun 14, 2010 at 17:46

1 Answer 1

1

Get rid of syncdb, instead perform a normal database dump and restore it on the other database

Sign up to request clarification or add additional context in comments.

3 Comments

I am also migrating from 1.1 to 1.2. Won't I break anything?
I don't know - just check it. You can always perform syncdb on the new database and compare the databases. First of all compare the structure, simple pg_dump from both databases and diff should work. Then you just could the same way perform dump of each table from one database and another and compare them. This way you should be able to do just the syncdb on the new database and load the prepared sql script to load missing data. Or maybe just look carefully at the errors that you've got, maybe it would be enough just to fix them.
Thanks, sounds reasonable :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.