Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final class Version20190211130934 extends AbstractMigration
- {
- public function up(Schema $schema) : void
- {
- // 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 `order` ADD state INT NOT NULL, ADD note LONGTEXT NOT NULL');
- }
- public function down(Schema $schema) : void
- {
- // 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 `order` DROP state, DROP note');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement