Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

cannot cast type smallint to boolean django

# if the existing data is not that important for you, you can delete the column and create a new one

# 1. first step remove currency from you model and apply migration
# 2. add again the currency with the new definition and apply again the migration
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cast #type #smallint #boolean #django
ADD COMMENT
Topic
Name
7+5 =