123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace Application\Migrations;
- use Doctrine\DBAL\Migrations\AbstractMigration;
- use Doctrine\DBAL\Schema\Schema;
- /**
- * Auto-generated Migration: Please modify to your needs!
- */
- class Version20180316121350 extends AbstractMigration
- {
- /**
- * @param Schema $schema
- */
- public function up(Schema $schema)
- {
- // this up() migration is auto-generated, please modify it to your needs
- $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
- $this->addSql('ALTER TABLE host CHANGE options options LONGTEXT DEFAULT NULL');
- $this->addSql('ALTER TABLE sub_net CHANGE options options LONGTEXT DEFAULT NULL');
- }
- /**
- * @param Schema $schema
- */
- public function down(Schema $schema)
- {
- // this down() migration is auto-generated, please modify it to your needs
- $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
- $this->addSql('ALTER TABLE host CHANGE options options LONGTEXT NOT NULL COLLATE utf8_unicode_ci');
- $this->addSql('ALTER TABLE sub_net CHANGE options options LONGTEXT NOT NULL COLLATE utf8_unicode_ci');
- }
- }
|