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

17 lines
362 B
Python
Raw Normal View History

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