From 7ba8bf2e00be13eb3d311469ee021996bd2a1db1 Mon Sep 17 00:00:00 2001 From: Javier Martin Montull Date: Wed, 9 Mar 2016 18:40:19 +0100 Subject: [PATCH] models: PersistentIdentifier column size increase * Changes string size for pid_type, pid_provider and object_type to 255 characters to allow more semantic names. Signed-off-by: Javier Martin Montull --- invenio_pidstore/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invenio_pidstore/models.py b/invenio_pidstore/models.py index c63abbc..db4d300 100644 --- a/invenio_pidstore/models.py +++ b/invenio_pidstore/models.py @@ -117,19 +117,19 @@ class PersistentIdentifier(db.Model, Timestamp): id = db.Column(db.Integer, primary_key=True) """Id of persistent identifier entry.""" - pid_type = db.Column(db.String(6), nullable=False) + pid_type = db.Column(db.String(255), nullable=False) """Persistent Identifier Schema.""" pid_value = db.Column(db.String(255), nullable=False) """Persistent Identifier.""" - pid_provider = db.Column(db.String(8), nullable=True) + pid_provider = db.Column(db.String(255), nullable=True) """Persistent Identifier Provider""" status = db.Column(ChoiceType(PIDStatus, impl=db.CHAR(1)), nullable=False) """Status of persistent identifier, e.g. registered, reserved, deleted.""" - object_type = db.Column(db.String(3), nullable=True) + object_type = db.Column(db.String(255), nullable=True) """Object Type - e.g. rec for record.""" object_uuid = db.Column(UUIDType, nullable=True)