<?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 Version20221024125628 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('DROP TABLE tusers_auth');
        $this->addSql('ALTER TABLE tgroups ADD stock_prices VARCHAR(255) DEFAULT NULL, ADD inventory_reports VARCHAR(255) DEFAULT NULL, ADD fast_moving_items VARCHAR(255) DEFAULT NULL, ADD most_profitable_items VARCHAR(255) DEFAULT NULL, ADD most_stocked_items VARCHAR(255) DEFAULT NULL, ADD highest_stock_items VARCHAR(255) DEFAULT NULL, ADD supplier_reports VARCHAR(255) DEFAULT NULL, ADD clients_reports VARCHAR(255) DEFAULT NULL, ADD financial_reports VARCHAR(255) DEFAULT NULL, ADD coa_setups VARCHAR(255) DEFAULT NULL, ADD accounts_setup VARCHAR(255) DEFAULT NULL, ADD security VARCHAR(255) DEFAULT NULL, ADD settings VARCHAR(255) DEFAULT NULL');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->addSql('CREATE TABLE tusers_auth (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, group_id INT DEFAULT NULL, user_name VARCHAR(60) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, password VARCHAR(60) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, status VARCHAR(60) CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, last_modified_by INT DEFAULT NULL, last_modified_nn DATE DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
        $this->addSql('ALTER TABLE tgroups DROP stock_prices, DROP inventory_reports, DROP fast_moving_items, DROP most_profitable_items, DROP most_stocked_items, DROP highest_stock_items, DROP supplier_reports, DROP clients_reports, DROP financial_reports, DROP coa_setups, DROP accounts_setup, DROP security, DROP settings');
    }
}
