<?php
declare(strict_types=1);
namespace CoreMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240205080320 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 cash_register_bundle__receipt_line CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE crm_bundle__opportunity CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE customers_bundle__customer CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE import_products_bundle__import_error CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE notification CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE products_bundle__attachment CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE products_bundle__declination CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE products_bundle__product CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE profile CHANGE roles roles JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE projects_bundle__project_quotation ADD quotation_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE projects_bundle__project_quotation ADD CONSTRAINT FK_35DF4AB4B4EA4E60 FOREIGN KEY (quotation_id) REFERENCES sales_bundle__quotation (id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_35DF4AB4B4EA4E60 ON projects_bundle__project_quotation (quotation_id)');
$this->addSql('ALTER TABLE projects_bundle__task_model CHANGE todos todos JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE projects_bundle__task_time ADD slot_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE projects_bundle__task_time ADD CONSTRAINT FK_3040BF2759E5119C FOREIGN KEY (slot_id) REFERENCES planning_bundle__slot (id)');
$this->addSql('CREATE INDEX IDX_3040BF2759E5119C ON projects_bundle__task_time (slot_id)');
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__credit_note CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__delivery_note CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD recurring_invoice_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__invoice ADD CONSTRAINT FK_BB8C2B4C9F85F85C FOREIGN KEY (recurring_invoice_id) REFERENCES recurring_invoices_bundle__recurring_invoice (id)');
$this->addSql('CREATE INDEX IDX_BB8C2B4C9F85F85C ON sales_bundle__invoice (recurring_invoice_id)');
$this->addSql('ALTER TABLE sales_bundle__invoice_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__order CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__order_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__quotation CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__quotation_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE user CHANGE config config JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE messenger_messages CHANGE queue_name queue_name VARCHAR(190) NOT NULL');
$this->addSql('CREATE INDEX IDX_75EA56E0FB7336F0 ON messenger_messages (queue_name)');
$this->addSql('CREATE INDEX IDX_75EA56E0E3BD61CE ON messenger_messages (available_at)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__delivery_note CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__quotation_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE user CHANGE config config JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__quotation CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE products_bundle__attachment CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__credit_note CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE recurring_invoices_bundle__recurring_invoice CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE suppliers_orders_bundle__supplier_order_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE projects_bundle__task_time DROP FOREIGN KEY FK_3040BF2759E5119C');
$this->addSql('DROP INDEX IDX_3040BF2759E5119C ON projects_bundle__task_time');
$this->addSql('ALTER TABLE projects_bundle__task_time DROP slot_id');
$this->addSql('ALTER TABLE sales_bundle__order_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE import_products_bundle__import_error CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE products_bundle__declination CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__invoice_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE profile CHANGE roles roles JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE cash_register_bundle__receipt_line CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE crm_bundle__opportunity CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE product_returns_bundle__product_return_line CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__order CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE products_bundle__product CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE projects_bundle__project_quotation DROP FOREIGN KEY FK_35DF4AB4B4EA4E60');
$this->addSql('DROP INDEX UNIQ_35DF4AB4B4EA4E60 ON projects_bundle__project_quotation');
$this->addSql('ALTER TABLE projects_bundle__project_quotation DROP quotation_id');
$this->addSql('DROP INDEX IDX_75EA56E0FB7336F0 ON messenger_messages');
$this->addSql('DROP INDEX IDX_75EA56E0E3BD61CE ON messenger_messages');
$this->addSql('ALTER TABLE messenger_messages CHANGE queue_name queue_name VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE projects_bundle__task_model CHANGE todos todos JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE notification CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE suppliers_orders_bundle__receipt_note_line CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP FOREIGN KEY FK_BB8C2B4C9F85F85C');
$this->addSql('DROP INDEX IDX_BB8C2B4C9F85F85C ON sales_bundle__invoice');
$this->addSql('ALTER TABLE sales_bundle__invoice DROP recurring_invoice_id, CHANGE options options JSON NOT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE customers_bundle__customer CHANGE options options JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
}
}