Opened 10 years ago

Closed 10 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

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.

Attachments (1)

error.txt​ (2.4 KB ) - added by Prabhanshu Abhishek 10 years ago.
Error on running python manage.py migrate

Download all attachments as: .zip

Change History (2)

by Prabhanshu Abhishek, 10 years ago

Attachment: error.txt​ added

Error on running python manage.py migrate

comment:1 by Tim Graham, 10 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.

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