<?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 Version20220419180753 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 it (id INT AUTO_INCREMENT NOT NULL, inventaire_id INT DEFAULT NULL, nom_dns VARCHAR(255) DEFAULT NULL, os VARCHAR(255) DEFAULT NULL, ram INT DEFAULT NULL, hd INT DEFAULT NULL, cpu VARCHAR(255) DEFAULT NULL, freq INT DEFAULT NULL, ecran INT DEFAULT NULL, mac_eth VARCHAR(255) DEFAULT NULL, mac_wlan VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_A28E7734CE430A85 (inventaire_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE it ADD CONSTRAINT FK_A28E7734CE430A85 FOREIGN KEY (inventaire_id) REFERENCES inventaire (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE it');
}
}