Make name the primary key in migration records

This commit is contained in:
Christopher Allan Webber 2012-01-02 14:40:32 -06:00
parent cbf29f2d58
commit bf81382896

View 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)
######################################################