From ae555fed006e3822dd4e65f8446651ec84b72795 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 22 Mar 2022 11:07:05 +0100 Subject: [PATCH] migration executed down and new one created to allow firstname nullable --- ...11133150.php => Version20220322095659.php} | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) rename src/Bundle/ChillThirdPartyBundle/migrations/{Version20220311133150.php => Version20220322095659.php} (67%) diff --git a/src/Bundle/ChillThirdPartyBundle/migrations/Version20220311133150.php b/src/Bundle/ChillThirdPartyBundle/migrations/Version20220322095659.php similarity index 67% rename from src/Bundle/ChillThirdPartyBundle/migrations/Version20220311133150.php rename to src/Bundle/ChillThirdPartyBundle/migrations/Version20220322095659.php index 768cd9533..ed3c21c04 100644 --- a/src/Bundle/ChillThirdPartyBundle/migrations/Version20220311133150.php +++ b/src/Bundle/ChillThirdPartyBundle/migrations/Version20220322095659.php @@ -1,12 +1,5 @@ addSql('ALTER TABLE chill_3party.third_party DROP firstname'); - } - public function getDescription(): string { - return 'Adding firstname to thirdparty'; + return 'Add firstname to thirdparty'; } public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs - $this->addSql('ALTER TABLE chill_3party.third_party ADD firstname VARCHAR(255) DEFAULT \'\' NOT NULL'); + $this->addSql('ALTER TABLE chill_3party.third_party ADD firstname VARCHAR(255) DEFAULT NULL'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE chill_3party.third_party DROP firstname'); } }