crafty-4/app/migrations/20220926_user_theme.py

17 lines
366 B
Python
Raw Permalink Normal View History

2022-09-27 01:23:16 +00:00
# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns("users", theme=peewee.CharField(default="default"))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns("users", ["theme"])
"""
Write your rollback migrations here.
"""