<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240610094339 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 company_file (id INT AUTO_INCREMENT NOT NULL, company_id INT DEFAULT NULL, deleted TINYINT(1) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, file_type VARCHAR(255) DEFAULT NULL, link_text VARCHAR(255) DEFAULT NULL, sort_order VARCHAR(255) DEFAULT NULL, mime VARCHAR(128) DEFAULT NULL, url VARCHAR(512) DEFAULT NULL, url_del VARCHAR(512) DEFAULT NULL, size INT DEFAULT NULL, signed TINYINT(1) DEFAULT NULL, show_on_website TINYINT(1) DEFAULT NULL, INDEX IDX_CFF22CFE979B1AD6 (company_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE company_file ADD CONSTRAINT FK_CFF22CFE979B1AD6 FOREIGN KEY (company_id) REFERENCES company (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE company_file DROP FOREIGN KEY FK_CFF22CFE979B1AD6');
$this->addSql('DROP TABLE company_file');
}
}