Dropping columns is as easy as specifying the column to drop, however, some databases (including SQLite) don't support this feature. Instead you may have to create a new table and migrate the data over. Altering table to remove column(s) ALTER TABLE mytable DROP column_to_be_deleted; ...
Refs#30591-- Adjusted table rebuild for non-pk relationship on SQLite. The existing code was only accounting for primary key changes and not all unique key fields that can be referenced. Note:SeeTracTicketsfor help on using tickets. 用其他格式下载: ...
Using a model like this: classKostenstelle(models.Model):id=models.AutoField(primary_key=True)name=models.CharField(max_length=60,blank=True)# ... omitted fieldsclassMeta:db_table='kostenstelle' I replaced theidline with id=models.IntegerField(primary_key=True,help_text="...") ...