# HG changeset patch # User Dirk Olmes # Date 1272552585 -7200 # Node ID ee1432a911417ee5bb59edb54655f80c2cfbdc40 # Parent 74481aa49974d5142b4674b89ae5277ca0f241b8 map the potentially long columns as Text (CLOB) not as String (VARCHAR) diff -r 74481aa49974 -r ee1432a91141 Mapping.py --- 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")) )