Reverse deleting of organizationCost property on event entity to keep db data

This commit is contained in:
2025-05-08 16:29:15 +02:00
parent aef1efc6cd
commit 94d7a2a0bb
2 changed files with 17 additions and 9 deletions

View File

@@ -14,9 +14,6 @@ namespace Chill\Migrations\Event;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250507073301 extends AbstractMigration
{
public function getDescription(): string
@@ -41,9 +38,6 @@ final class Version20250507073301 extends AbstractMigration
$this->addSql(<<<'SQL'
ALTER TABLE chill_event_thirdparty ADD CONSTRAINT FK_9946573EC7D3A8E6 FOREIGN KEY (thirdparty_id) REFERENCES chill_3party.third_party (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE chill_event_event DROP organizationcost
SQL);
}
public function down(Schema $schema): void
@@ -57,8 +51,5 @@ final class Version20250507073301 extends AbstractMigration
$this->addSql(<<<'SQL'
DROP TABLE chill_event_thirdparty
SQL);
$this->addSql(<<<'SQL'
ALTER TABLE chill_event_event ADD organizationcost NUMERIC(10, 4) DEFAULT '0.0'
SQL);
}
}