Mercurial > hg > Feedworm
comparison Mapping.py @ 7:215c34f61e95
Feed.url -> Feed.rss_url
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 27 Apr 2010 02:38:21 +0200 |
parents | 87317ba41816 |
children | 74481aa49974 |
comparison
equal
deleted
inserted
replaced
6:87317ba41816 | 7:215c34f61e95 |
---|---|
14 def createMapping(engine): | 14 def createMapping(engine): |
15 metadata = MetaData(engine) | 15 metadata = MetaData(engine) |
16 | 16 |
17 feedTable = Table("feed", metadata, | 17 feedTable = Table("feed", metadata, |
18 Column("pk", Integer, primary_key=True), | 18 Column("pk", Integer, primary_key=True), |
19 Column("name", String(255), nullable=False), | 19 Column("title", String(255), nullable=False), |
20 Column("url", String(255), nullable=False) | 20 Column("rss_url", String(255), nullable=False) |
21 ) | 21 ) |
22 | 22 |
23 feedEntryTable = Table("feed_entry", metadata, | 23 feedEntryTable = Table("feed_entry", metadata, |
24 Column("pk", Integer, primary_key=True), | 24 Column("pk", Integer, primary_key=True), |
25 Column("create_timestamp", DateTime, nullable=False), | 25 Column("create_timestamp", DateTime, nullable=False), |