<?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 Version20250825093400 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE delivery_rating ADD article_comment VARCHAR(255) DEFAULT NULL, ADD grooming_of_deliveryMan INT NOT NULL, ADD attidude_of_deliveryMan INT NOT NULL, ADD respect_of_geolocation INT NOT NULL, ADD speed_rating INT NOT NULL, ADD articles_rating VARCHAR(255) NOT NULL, CHANGE rating rating DOUBLE PRECISION NOT NULL');
$this->addSql('ALTER TABLE livreur ADD rating DECIMAL(2,1) DEFAULT NULL, ADD profile VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE food ADD rating FLOAT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE delivery_rating DROP article_comment, DROP grooming_of_deliveryMan, DROP attidude_of_deliveryMan, DROP respect_of_geolocation, DROP speed_rating, DROP articles_rating, CHANGE rating rating INT NOT NULL');
$this->addSql('ALTER TABLE livreur DROP rating, DROP profile');
$this->addSql('ALTER TABLE food DROP rating');
}
}