<?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 Version20240625160530 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('ALTER TABLE partner ADD name_addition VARCHAR(255) DEFAULT NULL, ADD address_addition VARCHAR(255) DEFAULT NULL, ADD phone VARCHAR(255) DEFAULT NULL, ADD language VARCHAR(255) DEFAULT NULL, ADD currency VARCHAR(255) DEFAULT NULL, ADD payment_condition VARCHAR(255) DEFAULT NULL, ADD delivery_condition VARCHAR(255) DEFAULT NULL, ADD business_group VARCHAR(255) DEFAULT NULL, ADD vat_business_group VARCHAR(255) DEFAULT NULL, ADD credit_limit INT DEFAULT NULL, ADD route_point VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE product ADD description_addition VARCHAR(255) DEFAULT NULL, ADD blocked TINYINT(1) NOT NULL, ADD inventory DOUBLE PRECISION NOT NULL, ADD base_unit VARCHAR(255) DEFAULT NULL, ADD buy_unit VARCHAR(255) DEFAULT NULL, ADD sell_unit VARCHAR(255) DEFAULT NULL, ADD tracking_code VARCHAR(255) DEFAULT NULL, ADD product_group VARCHAR(255) DEFAULT NULL, ADD customs_position VARCHAR(255) DEFAULT NULL, ADD product_booking_group VARCHAR(255) DEFAULT NULL, ADD vat_product_booking_group VARCHAR(255) DEFAULT NULL');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->addSql('ALTER TABLE product DROP description_addition, DROP blocked, DROP inventory, DROP base_unit, DROP buy_unit, DROP sell_unit, DROP tracking_code, DROP product_group, DROP customs_position, DROP product_booking_group, DROP vat_product_booking_group');
        $this->addSql('ALTER TABLE partner DROP name_addition, DROP address_addition, DROP phone, DROP language, DROP currency, DROP payment_condition, DROP delivery_condition, DROP business_group, DROP vat_business_group, DROP credit_limit, DROP route_point');
    }
}
