getTable('visits'); $this->skipIf($visits->hasColumn(self::COLUMN_NAME)); $visits->addColumn(self::COLUMN_NAME, Types::STRING, [ 'length' => 2048, 'notnull' => false, 'default' => null, ]); } public function down(Schema $schema): void { $visits = $schema->getTable('visits'); $this->skipIf(! $visits->hasColumn(self::COLUMN_NAME)); $visits->dropColumn(self::COLUMN_NAME); } public function isTransactional(): bool { return ! ($this->connection->getDatabasePlatform() instanceof MySQLPlatform); } }