getTable('visits'); $this->skipIf($visits->hasColumn(self::POTENTIAL_BOT_COLUMN)); $visits->addColumn(self::POTENTIAL_BOT_COLUMN, Types::BOOLEAN, ['default' => false]); } public function down(Schema $schema): void { $visits = $schema->getTable('visits'); $this->skipIf(! $visits->hasColumn(self::POTENTIAL_BOT_COLUMN)); $visits->dropColumn(self::POTENTIAL_BOT_COLUMN); } public function isTransactional(): bool { return $this->connection->getDatabasePlatform()->getName() !== 'mysql'; } }