diff --git a/diffengine/__init__.py b/diffengine/__init__.py index 61be628..8a5fde3 100755 --- a/diffengine/__init__.py +++ b/diffengine/__init__.py @@ -39,6 +39,7 @@ ForeignKeyField, Model, SqliteDatabase, + TextField, ) from playhouse.db_url import connect from playhouse.migrate import SqliteMigrator, migrate @@ -60,8 +61,8 @@ class Meta: class Feed(BaseModel): - url = CharField(primary_key=True) - name = CharField() + url = TextField(primary_key=True) + name = TextField() created = DateTimeField(default=datetime.utcnow) @property @@ -105,7 +106,7 @@ def get_latest(self): class Entry(BaseModel): - url = CharField() + url = TextField() created = DateTimeField(default=datetime.utcnow) checked = DateTimeField(default=datetime.utcnow) tweet_status_id_str = CharField(null=False, default="") @@ -236,11 +237,11 @@ class FeedEntry(BaseModel): class EntryVersion(BaseModel): - title = CharField() - url = CharField(index=True) - summary = CharField() + title = TextField() + url = TextField(index=True) + summary = TextField() created = DateTimeField(default=datetime.utcnow) - archive_url = CharField(null=True) + archive_url = TextField(null=True) entry = ForeignKeyField(Entry, backref="versions") tweet_status_id_str = CharField(null=False, default="")