mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
7d286e60e0
See merge request crafty-controller/crafty-4!369
17 lines
333 B
Python
17 lines
333 B
Python
import peewee
|
|
import datetime
|
|
|
|
|
|
def migrate(migrator, db):
|
|
class CraftySettings(peewee.Model):
|
|
secret_api_key = peewee.CharField(default="")
|
|
|
|
class Meta:
|
|
table_name = "crafty_settings"
|
|
|
|
migrator.create_table(CraftySettings)
|
|
|
|
|
|
def rollback(migrator, db):
|
|
migrator.drop_table("crafty_settings")
|