ensureColumnIsNullable($schema, 'group_folders', 'acl'); // There might be a duplicate column group which was already indexed through being primary key in Version401001Date20190715092137 $table = $schema->getTable('group_folders_manage'); if ($table->hasIndex('groups_folder_manage_unique')) { $table->dropIndex('groups_folder_manage_unique'); $result = true; } return $result ? $schema : null; } protected function ensureColumnIsNullable(ISchemaWrapper $schema, string $tableName, string $columnName): bool { $table = $schema->getTable($tableName); $column = $table->getColumn($columnName); if ($column->getNotnull()) { $column->setNotnull(false); return true; } return false; } }