mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Regression
This commit is contained in:
parent
bd64f0d2ae
commit
56e9aaab01
@ -3,14 +3,14 @@ import peewee
|
||||
|
||||
|
||||
def migrate(migrator, database, **kwargs):
|
||||
migrator.add_columns("roles", role_manager=peewee.IntegerField(null=True))
|
||||
migrator.add_columns("roles", manager=peewee.IntegerField(null=True))
|
||||
"""
|
||||
Write your migrations here.
|
||||
"""
|
||||
|
||||
|
||||
def rollback(migrator, database, **kwargs):
|
||||
migrator.drop_columns("roles", ["role_manager"])
|
||||
migrator.drop_columns("roles", ["manager"])
|
||||
"""
|
||||
Write your rollback migrations here.
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user