我有一个Django应用程序与一个填充(Postgres)数据库,有一个整数字段,我需要更改为CharField.我需要在此字段中开始以前导零存储数据.如果我运行migrate(Django 1.8.4),我会收到以下错误:
psycopg2.ProgrammingError: operator does not exist: character varying >= integer
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Run Code Online (Sandbox Code Playgroud)
我试着搜索谷歌,但没有找到太多帮助.我真的不知道我应该在这做什么.有人可以帮忙吗?