getTable('twofactor_backupcodes'); $column = $table->getColumn('user_id'); $column->setDefault(''); $column = $table->getColumn('used'); if ($column->getType()->getName() !== Types::SMALLINT) { $column->setType(Type::getType(Types::SMALLINT)); $column->setOptions(['length' => 6]); } return $schema; } }