summaryrefslogtreecommitdiff
path: root/app/ServiceProvider/CommandProvider.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-02 19:16:50 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-02 19:16:50 -0500
commitf2fd5d75d98e01ab58a71b718d630b9b2ae8e16f (patch)
tree6c691b5f0024b822df75a37644e804c864d8f8e7 /app/ServiceProvider/CommandProvider.php
parentb5671a2dc04b63a8d7787b1137e72d7858955d98 (diff)
Add config parameter to toggle automatic SQL migrations
- Add two command line opterations to show schema version and to execute SQL migrations - Add new configuration parameter to enable or disable SQL migrations
Diffstat (limited to 'app/ServiceProvider/CommandProvider.php')
-rw-r--r--app/ServiceProvider/CommandProvider.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/ServiceProvider/CommandProvider.php b/app/ServiceProvider/CommandProvider.php
index 55c2712b..c9abb294 100644
--- a/app/ServiceProvider/CommandProvider.php
+++ b/app/ServiceProvider/CommandProvider.php
@@ -3,6 +3,8 @@
namespace Kanboard\ServiceProvider;
use Kanboard\Console\CronjobCommand;
+use Kanboard\Console\DatabaseMigrationCommand;
+use Kanboard\Console\DatabaseVersionCommand;
use Kanboard\Console\LocaleComparatorCommand;
use Kanboard\Console\LocaleSyncCommand;
use Kanboard\Console\PluginInstallCommand;
@@ -55,6 +57,8 @@ class CommandProvider implements ServiceProviderInterface
$application->add(new PluginUpgradeCommand($container));
$application->add(new PluginInstallCommand($container));
$application->add(new PluginUninstallCommand($container));
+ $application->add(new DatabaseMigrationCommand($container));
+ $application->add(new DatabaseVersionCommand($container));
$container['cli'] = $application;
return $container;