How can I easily convert a Django app from mySQL to PostgreSQL?

后端 未结 7 1892
一个人的身影
一个人的身影 2021-01-31 12:04

Has anyone done this? Is it an easy process? We\'re thinking of switching over for transactions and because mysql seems to be \"crapping out\" lately.

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 12:21

    I've never done it personally, but it seems like a combination of the dumpdata and loaddata options of manage.py would be able to solve your problem quite easily. That is, unless you have a lot of database-specific things living outside the ORM such as stored procedures.

提交回复
热议问题