crafty-4/app/migrations/20210929205501_user_lang.py
2021-09-29 18:05:07 -04:00

17 lines
363 B
Python

# 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.
"""