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

后端 未结 7 1988
一个人的身影
一个人的身影 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:16

    I've not done it either. I'd first follow this migration guide, there is a MySql section which should take care of all your data. Then django just switch the mysql to postgre in the settings. I think that should be ok.

    I found another question on stackoverflow which should help with the converting mysql to postgre here.

提交回复
热议问题