From: Christopher Allan Webber Date: Mon, 2 Jan 2012 20:40:32 +0000 (-0600) Subject: Make name the primary key in migration records X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bf81382896e98e5a7c3dcd426ee8c73fe9ef84a6;p=mediagoblin.git Make name the primary key in migration records --- diff --git a/mediagoblin/db/sql/models.py b/mediagoblin/db/sql/models.py index 3573bc3f..ed733aff 100644 --- a/mediagoblin/db/sql/models.py +++ b/mediagoblin/db/sql/models.py @@ -230,8 +230,7 @@ MODELS = [ class MigrationData(Base): __tablename__ = "migrations" - id = Column(Integer, primary_key=True) - name = Column(Unicode, nullable=False, unique=True) + name = Column(Unicode, primary_key=True) version = Column(Integer, nullable=False, default=0) ######################################################