crafty-4/app/migrations/stats/20230827_add_icon.py
2023-09-02 21:51:28 +02:00

17 lines
370 B
Python

# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns("server_stats", icon=peewee.CharField(null=True))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns("server_stats", ["icon"])
"""
Write your rollback migrations here.
"""