migrations/Version20221019211520.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 Version20221019211520 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 item_document_indicator (id INT AUTO_INCREMENT NOT NULL, user_created INT DEFAULT NULL, user_changed INT DEFAULT NULL, item_indicator INT DEFAULT NULL, item_document INT DEFAULT NULL, date_created DATETIME DEFAULT NULL, date_changed DATETIME DEFAULT NULL, active TINYINT(1) DEFAULT 1 NOT NULL, value NUMERIC(20, 2) DEFAULT NULL, INDEX IDX_975FD254EA30A9B2 (user_created), INDEX IDX_975FD254FBFE23F0 (user_changed), INDEX IDX_975FD254DDEE8B43 (item_indicator), INDEX IDX_975FD254B46442BD (item_document), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');$this->addSql('ALTER TABLE item_document_indicator ADD CONSTRAINT FK_975FD254EA30A9B2 FOREIGN KEY (user_created) REFERENCES user (id)');$this->addSql('ALTER TABLE item_document_indicator ADD CONSTRAINT FK_975FD254FBFE23F0 FOREIGN KEY (user_changed) REFERENCES user (id)');$this->addSql('ALTER TABLE item_document_indicator ADD CONSTRAINT FK_975FD254DDEE8B43 FOREIGN KEY (item_indicator) REFERENCES item_indicator (id)');$this->addSql('ALTER TABLE item_document_indicator ADD CONSTRAINT FK_975FD254B46442BD FOREIGN KEY (item_document) REFERENCES item_document (id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE item_document_indicator DROP FOREIGN KEY FK_975FD254EA30A9B2');$this->addSql('ALTER TABLE item_document_indicator DROP FOREIGN KEY FK_975FD254FBFE23F0');$this->addSql('ALTER TABLE item_document_indicator DROP FOREIGN KEY FK_975FD254DDEE8B43');$this->addSql('ALTER TABLE item_document_indicator DROP FOREIGN KEY FK_975FD254B46442BD');$this->addSql('DROP TABLE item_document_indicator');}}