diff --git a/src/Migrations/Version20210226135734.php b/src/Migrations/Version20210226135734.php new file mode 100644 index 0000000..8ccfc63 --- /dev/null +++ b/src/Migrations/Version20210226135734.php @@ -0,0 +1,35 @@ +abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.'); + + $this->addSql('ALTER TABLE options ADD picture_path VARCHAR(255) DEFAULT 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 options DROP picture_path'); + } +}