SHARE
TWEET

Untitled

a guest May 23rd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php declare(strict_types = 1);
  2.  
  3. namespace DoctrineMigrations;
  4.  
  5. use Doctrine\DBAL\Migrations\AbstractMigration;
  6. use Doctrine\DBAL\Schema\Schema;
  7.  
  8. /**
  9.  * Auto-generated Migration: Please modify to your needs!
  10.  */
  11. class Version20180410113805 extends AbstractMigration
  12. {
  13.     public function up(Schema $schema)
  14.     {
  15.         // this up() migration is auto-generated, please modify it to your needs
  16.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
  17.  
  18.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_f603601b44f5d008 TO IDX_ED63274244F5D008');
  19.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_f603601b498da827 TO IDX_ED632742498DA827');
  20.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_f603601b84337261 TO IDX_ED63274284337261');
  21.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_f603601b7975b7e7 TO IDX_ED6327427975B7E7');
  22.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_f603601b44de2601 TO IDX_ED63274244DE2601');
  23.     }
  24.  
  25.     public function down(Schema $schema)
  26.     {
  27.         // this down() migration is auto-generated, please modify it to your needs
  28.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
  29.  
  30.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_ed63274244f5d008 TO IDX_F603601B44F5D008');
  31.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_ed632742498da827 TO IDX_F603601B498DA827');
  32.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_ed63274284337261 TO IDX_F603601B84337261');
  33.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_ed6327427975b7e7 TO IDX_F603601B7975B7E7');
  34.         $this->addSql('ALTER TABLE tyre_data RENAME INDEX idx_ed63274244de2601 TO IDX_F603601B44DE2601');
  35.     }
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top