crafty-4/app/migrations/20210929205501_user_lang.py

17 lines
363 B
Python
Raw Normal View History

2021-09-29 22:05:07 +00:00
# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns('users', lang=peewee.CharField(default='en_EN'))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns('users', ['lang'])
"""
Write your rollback migrations here.
"""