Make name the primary key in migration records
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 2 Jan 2012 20:40:32 +0000 (14:40 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 29 Jan 2012 22:33:45 +0000 (16:33 -0600)
mediagoblin/db/sql/models.py

index 3573bc3f5cd21a2da31907220845283392796c4e..ed733aff7f39c333db8866d3f260926bef600e60 100644 (file)
@@ -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)
 
 ######################################################