abortIf( $this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.' ); $this->addSql('ALTER TABLE person RENAME COLUMN birthdate TO date_of_birth'); $this->addSql('ALTER TABLE person RENAME COLUMN gender TO genre'); } public function up(Schema $schema): void { $this->abortIf( $this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.' ); $this->addSql('ALTER TABLE person RENAME COLUMN date_of_birth TO birthdate'); $this->addSql('ALTER TABLE person RENAME COLUMN genre TO gender'); } }