diff --git a/ckanext/datarequests/db.py b/ckanext/datarequests/db.py index 17874cef..94eb10a0 100644 --- a/ckanext/datarequests/db.py +++ b/ckanext/datarequests/db.py @@ -64,8 +64,8 @@ def get_ordered_by_date(cls, **kw): datarequests_table = sa.Table('datarequests', model.meta.metadata, sa.Column('user_id', sa.types.UnicodeText, primary_key=False, default=u''), sa.Column('id', sa.types.UnicodeText, primary_key=True, default=uuid4), - sa.Column('title', sa.types.UnicodeText(constants.NAME_MAX_LENGTH), primary_key=True, default=u''), - sa.Column('description', sa.types.UnicodeText(constants.DESCRIPTION_MAX_LENGTH), primary_key=False, default=u''), + sa.Column('title', sa.types.Unicode(constants.NAME_MAX_LENGTH), primary_key=True, default=u''), + sa.Column('description', sa.types.Unicode(constants.DESCRIPTION_MAX_LENGTH), primary_key=False, default=u''), sa.Column('organization_id', sa.types.UnicodeText, primary_key=False, default=None), sa.Column('open_time', sa.types.DateTime, primary_key=False, default=None), sa.Column('accepted_dataset_id', sa.types.UnicodeText, primary_key=False, default=None), @@ -102,7 +102,7 @@ def get_ordered_by_date(cls, **kw): sa.Column('user_id', sa.types.UnicodeText, primary_key=False, default=u''), sa.Column('datarequest_id', sa.types.UnicodeText, primary_key=True, default=uuid4), sa.Column('time', sa.types.DateTime, primary_key=True, default=u''), - sa.Column('comment', sa.types.UnicodeText(constants.COMMENT_MAX_LENGTH), primary_key=False, default=u'') + sa.Column('comment', sa.types.Unicode(constants.COMMENT_MAX_LENGTH), primary_key=False, default=u'') ) # Create the table only if it does not exist