Changes between Initial Version and Version 1 of Ticket #17202, comment 2


Ignore:
Timestamp:
Dec 22, 2015, 4:08:21 PM (9 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17202, comment 2

    initial v1  
    11A similar problem happens with mysql 5.5.28CE on linux where the size is 3x greater than that specified, given the SQL:
    2 
     2{{{
    33CREATE TABLE `primaryfields` (
    44  `fpost` int(11) NOT NULL,
     
    1212  CONSTRAINT `primaryfields_ibfk_1` FOREIGN KEY (`fpost`) REFERENCES `filenames` (`fpost`)
    1313) ENGINE=InnoDB DEFAULT CHARSET='''latin1''' |
    14 
     14}}}
    1515You get the Python:
    16 
     16{{{
    1717class Primaryfields(models.Model):
    1818    fpost = models.ForeignKey(Filenames, primary_key=True, db_column='fpost')
     
    2525    class Meta:
    2626        db_table = u'primaryfields'
     27}}}
Back to Top