SHARE
TWEET

Untitled

a guest Feb 11th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
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