disable migration checker if in production mode / disabled in settings

This commit is contained in:
Lorenc Pekaj 2019-01-02 21:24:46 +11:00
parent 941ead4c4c
commit f1993e9d8a

View File

@ -5,15 +5,16 @@
* Purpose: checks (and executes if you want) migration files for a server * Purpose: checks (and executes if you want) migration files for a server
*/ */
/* ** Disable Checker If Disabled By Operator / Production Mode ** */
#if !defined SERVER_MIGRATIONS_FOLDER || !defined DEBUG_MODE
#endinput
#endif
/* ** Includes ** */ /* ** Includes ** */
#include < YSI\y_hooks > #include < YSI\y_hooks >
#tryinclude < filemanager > #tryinclude < filemanager >
/* ** Error Checking ** */ /* ** Further Error Checking ** */
#if !defined SERVER_MIGRATIONS_FOLDER
#endinput
#endif
#if !defined FM_DIR #if !defined FM_DIR
#warning "Migration checker is disabled (Install FileManager Plugin)" #warning "Migration checker is disabled (Install FileManager Plugin)"
#endinput #endinput