I want to create a table like so -
CREATE TABLE
trial_xml
(id
int(11) DEFAULT NULL,pid
int(11) DEFAULT NULL,sid
varchar(256) CHARACTER SET utf8 NOT NULL,data
blob,
PRIMARY KEY (soid
), KEYsuid_index
(suid
) ) ENGINE=MyISAM DEFAULT CHARSET=latin1
my question is how do I set "data" field as "blob" in django's models.py ??
I mean what's the syntax?
UPDATE: I dont want to set data
field as longtext
. I want only blob
datafield.