mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
e06fe8a52a
Apply black formatting to codebase
27 lines
803 B
Python
27 lines
803 B
Python
# Generated by database migrator
|
|
import peewee
|
|
|
|
|
|
def migrate(migrator, database, **kwargs):
|
|
migrator.add_columns(
|
|
"user_servers", permissions=peewee.CharField(default="00000000")
|
|
) # First argument can be model class OR table name
|
|
migrator.add_columns(
|
|
"role_servers", permissions=peewee.CharField(default="00000000")
|
|
) # First argument can be model class OR table name
|
|
"""
|
|
Write your migrations here.
|
|
"""
|
|
|
|
|
|
def rollback(migrator, database, **kwargs):
|
|
migrator.drop_columns(
|
|
"user_servers", ["permissions"]
|
|
) # First argument can be model class OR table name
|
|
migrator.drop_columns(
|
|
"role_servers", ["permissions"]
|
|
) # First argument can be model class OR table name
|
|
"""
|
|
Write your rollback migrations here.
|
|
"""
|