crafty-4/app/migrations/20210915205501_user_email.py

17 lines
378 B
Python
Raw Normal View History

# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns("users", email=peewee.CharField(default="default@example.com"))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns("users", ["email"])
"""
Write your rollback migrations here.
"""