mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(CI): Operand of type Doctrine\DBAL\Schema\Column is always truthy
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
a20110bdc4
commit
c0d2f7ee21
2 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ class Version1011Date20201120125158 extends SimpleMigrationStep {
|
|||
if ($schema->hasTable('federated_reshares')) {
|
||||
$table = $schema->getTable('federated_reshares');
|
||||
$remoteIdColumn = $table->getColumn('remote_id');
|
||||
if ($remoteIdColumn && Types::getType($remoteIdColumn->getType()) !== Types::STRING) {
|
||||
if (Types::getType($remoteIdColumn->getType()) !== Types::STRING) {
|
||||
$remoteIdColumn->setNotnull(false);
|
||||
$remoteIdColumn->setType(Type::getType(Types::STRING));
|
||||
$remoteIdColumn->setOptions(['length' => 255]);
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ class Version11300Date20201120141438 extends SimpleMigrationStep {
|
|||
} else {
|
||||
$table = $schema->getTable('share_external');
|
||||
$remoteIdColumn = $table->getColumn('remote_id');
|
||||
if ($remoteIdColumn && Types::getType($remoteIdColumn->getType()) !== Types::STRING) {
|
||||
if (Types::getType($remoteIdColumn->getType()) !== Types::STRING) {
|
||||
$remoteIdColumn->setNotnull(false);
|
||||
$remoteIdColumn->setType(Type::getType(Types::STRING));
|
||||
$remoteIdColumn->setOptions(['length' => 255]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue