diff --git a/app/migrations/20210915205501_crash.py b/app/migrations/20210915205501_crash.py new file mode 100644 index 00000000..74937251 --- /dev/null +++ b/app/migrations/20210915205501_crash.py @@ -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. + """ diff --git a/app/translations/en_EN.json b/app/translations/en_EN.json index 3c94b2ce..646206e2 100644 --- a/app/translations/en_EN.json +++ b/app/translations/en_EN.json @@ -118,7 +118,8 @@ "starting": "Delayed-Start", "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", - "welcome": "Welcome to Crafty Controller" + "welcome": "Welcome to Crafty Controller", + "crashed": "Crashed" }, "accessDenied": { "accessDenied": "Access Denied",