mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-26 00:24:59 +00:00
Reverse deleting of organizationCost property on event entity to keep db data
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user