If you want to alter your schema (remove a field from the table, or
remove the entire table), first remove the field from your model, or
remove the entire model. Then make the change in your database.
Or you can look into using 'south' for schema changes. After you spend
a little time learning it
Dear all,
I'm new at Django . i have got a trouble with delete table.
I want to delete my table that is wrong field , but i can 't figure out how
to do that.
Pls , Help me
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
You can drop your table in sqlite session without deleting the other
tables. You can do that in sqlite by the next command:
sqlite>drop table Orders;
On Oct 11, 11:15 am, TopRamen <[EMAIL PROTECTED]> wrote:
> Greg, if you do not mind losing any sample data you may have in your
> tables, you
Greg, if you do not mind losing any sample data you may have in your
tables, you could do a 'python manage.py reset . This will
execute the output of 'python manage.py sqlreset in your
database. Basically, it will delete your tables, and re-run a syncdb,
which will re-build your database's
On 10/11/07, Greg <[EMAIL PROTECTED]> wrote:
...
> Do I need to do this with my sqliteman software
Yes.
> or ca I do something
> like Orders.delete() in my djano command prompt.
No.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Hello,
Simple question, I have a database table called Orders. I want to
delete this table so that when I do 'python manage.py syncdb' the
table will get recreated. I want to make some modifications to the
columns in the table and I can't seem to do the with SQLite. I don't
want to delete the
6 matches
Mail list logo