Advertisement
Guest User

Untitled

a guest
Feb 11th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. final class Version20190211130934 extends AbstractMigration
  2. {
  3.     public function up(Schema $schema) : void
  4.     {
  5.         // this up() migration is auto-generated, please modify it to your needs
  6.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
  7.  
  8.         $this->addSql('ALTER TABLE `order` ADD state INT NOT NULL, ADD note LONGTEXT NOT NULL');
  9.     }
  10.  
  11.     public function down(Schema $schema) : void
  12.     {
  13.         // this down() migration is auto-generated, please modify it to your needs
  14.         $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
  15.  
  16.         $this->addSql('ALTER TABLE `order` DROP state, DROP note');
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement