Add config parameter for custom database port

This commit is contained in:
Frederic Guillot
2015-03-05 21:37:57 -05:00
parent 95bac2d7e9
commit 313318a40d
4 changed files with 10 additions and 4 deletions

View File

@@ -79,6 +79,7 @@ class DatabaseProvider implements ServiceProviderInterface
'password' => DB_PASSWORD,
'database' => DB_NAME,
'charset' => 'utf8',
'port' => DB_PORT,
));
}
@@ -97,6 +98,7 @@ class DatabaseProvider implements ServiceProviderInterface
'username' => DB_USERNAME,
'password' => DB_PASSWORD,
'database' => DB_NAME,
'port' => DB_PORT,
));
}
}

View File

@@ -21,6 +21,7 @@ defined('DB_USERNAME') or define('DB_USERNAME', 'root');
defined('DB_PASSWORD') or define('DB_PASSWORD', '');
defined('DB_HOSTNAME') or define('DB_HOSTNAME', 'localhost');
defined('DB_NAME') or define('DB_NAME', 'kanboard');
defined('DB_PORT') or define('DB_PORT', null);
// LDAP configuration
defined('LDAP_AUTH') or define('LDAP_AUTH', false);