Add extras for crash detection

This commit is contained in:
Andrew 2022-01-27 21:16:19 -05:00
parent 005ac1216e
commit 42062004a2
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,16 @@
# Generated by database migrator
import peewee
def migrate(migrator, database, **kwargs):
migrator.add_columns('server_stats', crashed=peewee.BooleanField(default=False))
"""
Write your migrations here.
"""
def rollback(migrator, database, **kwargs):
migrator.drop_columns('server_stats', ['crashed'])
"""
Write your rollback migrations here.
"""

View File

@ -118,7 +118,8 @@
"starting": "Delayed-Start", "starting": "Delayed-Start",
"delay-explained": "The service/agent has recently started and is delaying the start of the minecraft server instance", "delay-explained": "The service/agent has recently started and is delaying the start of the minecraft server instance",
"no-servers": "There are currently no servers. To get started, click", "no-servers": "There are currently no servers. To get started, click",
"welcome": "Welcome to Crafty Controller" "welcome": "Welcome to Crafty Controller",
"crashed": "Crashed"
}, },
"accessDenied": { "accessDenied": {
"accessDenied": "Access Denied", "accessDenied": "Access Denied",