diff options
Diffstat (limited to 'core/Command/Db')
-rw-r--r-- | core/Command/Db/AddMissingIndices.php | 1 | ||||
-rw-r--r-- | core/Command/Db/ConvertType.php | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/core/Command/Db/AddMissingIndices.php b/core/Command/Db/AddMissingIndices.php index 527a2cd7b19..4de1d0f12f4 100644 --- a/core/Command/Db/AddMissingIndices.php +++ b/core/Command/Db/AddMissingIndices.php @@ -20,7 +20,6 @@ declare(strict_types=1); * */ - namespace OC\Core\Command\Db; use OC\DB\SchemaWrapper; diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index bd26c5e5154..d4a4d406eea 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -33,11 +33,11 @@ namespace OC\Core\Command\Db; use Doctrine\DBAL\DBALException; use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Types\Type; -use OC\DB\MigrationService; -use OCP\DB\QueryBuilder\IQueryBuilder; -use \OCP\IConfig; use OC\DB\Connection; use OC\DB\ConnectionFactory; +use OC\DB\MigrationService; +use OCP\DB\QueryBuilder\IQueryBuilder; +use OCP\IConfig; use Stecman\Component\Symfony\Console\BashCompletion\Completion\CompletionAwareInterface; use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext; use Symfony\Component\Console\Command\Command; @@ -383,6 +383,9 @@ class ConvertType extends Command implements CompletionAwareInterface { case Type::TEXT: $this->columnTypes[$tableName][$columnName] = IQueryBuilder::PARAM_LOB; break; + case Type::BOOLEAN: + $this->columnTypes[$tableName][$columnName] = IQueryBuilder::PARAM_BOOL; + break; default: $this->columnTypes[$tableName][$columnName] = false; } |