From a07781860be491a9d53e1343ab977aa0d031cd95 Mon Sep 17 00:00:00 2001 From: Mark J Crane Date: Thu, 2 Jul 2020 12:02:54 -0600 Subject: [PATCH] Change data type and add toggle values --- core/default_settings/app_config.php | 5 ++++- core/domain_settings/app_config.php | 5 ++++- core/domains/app_config.php | 5 ++++- core/user_settings/app_config.php | 5 ++++- core/users/app_config.php | 6 +++++- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/core/default_settings/app_config.php b/core/default_settings/app_config.php index 82be5c2f5c..a5e72052f8 100644 --- a/core/default_settings/app_config.php +++ b/core/default_settings/app_config.php @@ -487,7 +487,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "default_setting_enabled"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "boolean"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false']; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "default_setting_description"; diff --git a/core/domain_settings/app_config.php b/core/domain_settings/app_config.php index ec709adfdd..5fffef49cb 100644 --- a/core/domain_settings/app_config.php +++ b/core/domain_settings/app_config.php @@ -100,7 +100,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_setting_enabled"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "boolean"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false']; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_setting_description"; diff --git a/core/domains/app_config.php b/core/domains/app_config.php index b49bdb6f7e..5e84d462e5 100644 --- a/core/domains/app_config.php +++ b/core/domains/app_config.php @@ -82,7 +82,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the domain name."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_enabled"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "boolean"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false']; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Set the status of the domain."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_description"; diff --git a/core/user_settings/app_config.php b/core/user_settings/app_config.php index f7e3271343..fcb107229c 100644 --- a/core/user_settings/app_config.php +++ b/core/user_settings/app_config.php @@ -103,7 +103,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_enabled"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "boolean"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false']; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_description"; diff --git a/core/users/app_config.php b/core/users/app_config.php index 845d0cbd71..ffba651654 100644 --- a/core/users/app_config.php +++ b/core/users/app_config.php @@ -220,6 +220,7 @@ $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_enabled"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false']; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "add_user"; @@ -346,7 +347,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_enabled"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "boolean"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false']; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_setting_description";