django - ProgrammingError: column cannot be cast automatically to type double precision -
i'm trying migrate django project using sqlite3 using postgresql. i've created database project, when try run syncdb, following error:
django.db.utils.programmingerror: column "partial_value" cannot cast automatically type double precision hint: specify using expression perform conversion. the column defined in model:
partial_value = models.floatfield() i tried searching similar questions, seemed more replacing field types.
you needs update type of column 'partial_value' column. place name of table in following code table_name
alter table table_name alter column partial_value type double precision using (trim(partial_value)::double precision);
Comments
Post a Comment