Mercurial > hg > Feedworm
diff Mapping.py @ 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 | 5813e3c10f14 |
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")) )