<?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 Version20260219080131 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 partner_api_users (id VARCHAR(36) NOT NULL, username VARCHAR(180) NOT NULL, token VARCHAR(255) NOT NULL, UNIQUE INDEX UNIQ_1BC16A2DF85E0677 (username), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE channel_configuration ADD enabled_partner_api_index TINYINT(1) DEFAULT 1 NOT NULL, DROP enabled_crm');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE partner_api_users');
$this->addSql('ALTER TABLE channel_configuration ADD enabled_crm TINYINT(1) DEFAULT 0 NOT NULL, DROP enabled_partner_api_index');
}
}