Mercurial > hg > Feedworm
changeset 30:ee1432a91141
map the potentially long columns as Text (CLOB) not as String (VARCHAR)
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 29 Apr 2010 16:49:45 +0200 |
parents | 74481aa49974 |
children | 5bb57caa8f66 |
files | Mapping.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Mapping.py Thu Apr 29 16:48:16 2010 +0200 +++ b/Mapping.py Thu Apr 29 16:49:45 2010 +0200 @@ -8,6 +8,7 @@ from sqlalchemy import MetaData from sqlalchemy import String from sqlalchemy import Table +from sqlalchemy import Text from sqlalchemy.orm import mapper from sqlalchemy.orm import relation @@ -27,8 +28,8 @@ Column("id", String(255), nullable=False), Column("link", String(255), nullable=False), - Column("title", String, nullable=False), - Column("summary", String, nullable=False), + Column("title", Text, nullable=False), + Column("summary", Text, nullable=False), Column("updated", DateTime), Column("feed_id", Integer, ForeignKey("feed.pk")) )