Opened 8 years ago
Closed 8 years ago
#27457 closed Bug (invalid)
Cannot migrate ArrayField on SQLite
Description ¶
python manage.py migrate
Code in Model:
A =ArrayField(models.CharField(max_length=200,blank=True),blank=True,null=True,default=["admin"])
I have tried all possible combination, of these three. In every case I got ValueError of one kind or other.
Change History (2)
by , 8 years ago
comment:1 by , 8 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Summary: | Cannot migrate If model has ArrayField. → Cannot migrate ArrayField on SQLite |
It looks like you may be trying to use django.contrib.postgres.fields.ArrayField
on SQLite. It can only be used PostgreSQL. If ArrayField
is some other third-party field, then you should file a bug against that project, or have the maintainer of that project file a bug against Django indicating why the SQLite database backend is at fault. Thanks.
Error on running python manage.py migrate