Opened 8 years ago

Closed 8 years ago

#27457 closed Bug (invalid)

Cannot migrate ArrayField on SQLite

Reported by: Prabhanshu Abhishek Owned by: nobody
Component: Database layer (models, ORM) Version: 1.10
Severity: Normal Keywords: Model, ArrayField, Migrate
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


python 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.

Attachments (1)

error.txt (2.4 KB ) - added by Prabhanshu Abhishek 8 years ago.
Error on running python migrate

Download all attachments as: .zip

Change History (2)

by Prabhanshu Abhishek, 8 years ago

Attachment: error.txt added

Error on running python migrate

comment:1 by Tim Graham, 8 years ago

Resolution: invalid
Status: newclosed
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.

Note: See TracTickets for help on using tickets.
Back to Top