Skip to content

Commit

Permalink
models: PersistentIdentifier column definition change
Browse files Browse the repository at this point in the history
* Changes column type for pid_type, pid_provider and object_type from
  db.String to db.Text.

Signed-off-by: Javier Martin Montull <[email protected]>
  • Loading branch information
jmartinm committed Mar 9, 2016
1 parent 88ef940 commit 3a63c09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions invenio_pidstore/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.Text, nullable=False)
"""Persistent Identifier Schema."""

pid_value = db.Column(db.String(255), nullable=False)
pid_value = db.Column(db.Text, nullable=False)
"""Persistent Identifier."""

pid_provider = db.Column(db.String(8), nullable=True)
pid_provider = db.Column(db.Text, 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.Text, nullable=True)
"""Object Type - e.g. rec for record."""

object_uuid = db.Column(UUIDType, nullable=True)
Expand Down

0 comments on commit 3a63c09

Please sign in to comment.