migrations/Version20220619095100.php line 1

Open in your IDE?
  1. <?php
    
    declare(strict_types=1);
    
    namespace DoctrineMigrations;
    
    use Doctrine\DBAL\Schema\Schema;
    use Doctrine\Migrations\AbstractMigration;
    
    /**
     * Auto-generated Migration: Please modify to your needs!
     */
    final class Version20220619095100 extends AbstractMigration
    {
        public function getDescription(): string
        {
            return 'add exchange table number, change rato no to exchange table';
        }
    
        public function up(Schema $schema): void
        {
            // this up() migration is auto-generated, please modify it to your needs
            $this->addSql('ALTER TABLE course ADD exchange_table_number VARCHAR(100) DEFAULT NULL, CHANGE rate_no exchange_table VARCHAR(100) DEFAULT NULL');
        }
    
        public function down(Schema $schema): void
        {
            // this down() migration is auto-generated, please modify it to your needs
            $this->addSql('ALTER TABLE course ADD rate_no VARCHAR(100) DEFAULT NULL, DROP exchange_table, DROP exchange_table_number');
        }
    }