migrations/Version20251209111537.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20251209111537 extends AbstractMigration{public function getDescription(): string{return '';}public function up(Schema $schema): void{// this up() migration is auto-generated, please modify it to your needs$this->addSql('CREATE TABLE packing_activities (id INT AUTO_INCREMENT NOT NULL, packedQuantity INT NOT NULL, packedAt DATETIME NOT NULL, team VARCHAR(20) NOT NULL, customerOrderLine_id INT NOT NULL, INDEX IDX_E11AD051FDBDF986 (customerOrderLine_id), INDEX idx_packed_at (packedAt), INDEX idx_team (team), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');$this->addSql('ALTER TABLE packing_activities ADD CONSTRAINT FK_E11AD051FDBDF986 FOREIGN KEY (customerOrderLine_id) REFERENCES customer_order_lines (id) ON DELETE CASCADE');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE packing_activities DROP FOREIGN KEY FK_E11AD051FDBDF986');$this->addSql('DROP TABLE packing_activities');}}