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'); } }