From ffc5d030996797ec037f87ce0b77d1cdd67bd9c7 Mon Sep 17 00:00:00 2001 From: Baptiste-Moench Date: Mon, 1 Mar 2021 14:42:11 +0100 Subject: [PATCH] #36: fichier de migration pour le chemin vers l'illustration des textes d'accueil --- src/Migrations/Version20210226135734.php | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/Migrations/Version20210226135734.php 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'); + } +}