관리-도구
편집 파일: 015_add_iplist_expiration_index.py
def migrate(migrator, database, fake=False, **kwargs): """Write your migrations here.""" IPList = migrator.orm["iplist"] migrator.add_index(IPList, "expiration") def rollback(migrator, database, fake=False, **kwargs): """Write your rollback migrations here.""" IPList = migrator.orm["iplist"] migrator.drop_index(IPList, "expiration")