관리-도구
편집 파일: 069_incidents_domain_field.py
import peewee as pw def migrate(migrator, database, fake=False, **kwargs): Incident = migrator.orm["incident"] migrator.add_fields(Incident, domain=pw.TextField(default=None, null=True)) def rollback(migrator, database, fake=False, **kwargs): Incident = migrator.orm["incident"] migrator.remove_fields(Incident, "domain")