abortIf( $this->connection->getDatabasePlatform()->getName() !== 'postgresql', 'Migration can only be executed safely on \'postgresql\'.' ); $this->addSql('ALTER TABLE accompanying_period RENAME COLUMN openingdate TO date_opening;'); $this->addSql('ALTER TABLE accompanying_period RENAME COLUMN closingdate TO date_closing;'); $this->addSql('ALTER TABLE accompanying_period RENAME COLUMN remark TO memo;'); } 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 accompanying_period RENAME COLUMN date_opening TO openingdate;'); $this->addSql('ALTER TABLE accompanying_period RENAME COLUMN date_closing TO closingdate;'); $this->addSql('ALTER TABLE accompanying_period RENAME COLUMN memo TO remark;'); } }