Can you remove a model's last field of SQLite3 in Django 1.8?
63 views
Skip to first unread message
KwangYoun Jung
unread,
Nov 29, 2015, 12:17:54 PM11/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Can you remove a model's last field of SQLite3 in Django 1.8?
I have a model that has only one column in SQLite3. When I remove a last field of the model, I get an error like below
django.db.utils.OperationalError: near ")": syntax error
Anyone knows about this issue ?
Daniel Roseman
unread,
Nov 29, 2015, 2:29:50 PM11/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
No, nobody knows anything about this issue because you didn't give any details. What does "remove a last field" mean? When are you getting that error? What code did you run?
--
DR.
Markus Holtermann
unread,
Nov 29, 2015, 3:29:03 PM11/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
No, you can't because of two things:
1. SQLite doesn't allow an 'ALTER TABLE ... DROP COLUMN ...'
On Sun, Nov 29, 2015 at 09:17:53AM -0800, KwangYoun Jung wrote:
>Can you remove a model's last field of SQLite3 in Django 1.8?
>
>I have a model that has only one column in SQLite3.
>When I remove a last field of the model, I get an error like below
>
>
>