<?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 Version20220214094548 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 products_bundle__brand_translations');
$this->addSql('CREATE INDEX name ON categories_bundle__category (name)');
$this->addSql('ALTER TABLE currency CHANGE change_rate change_rate NUMERIC(20, 12) DEFAULT \'1\' NOT NULL');
$this->addSql('CREATE INDEX name ON products_bundle__attribute (name)');
$this->addSql('CREATE INDEX name ON products_bundle__attribute_group (name)');
$this->addSql('CREATE INDEX name ON products_bundle__brand (name)');
$this->addSql('CREATE INDEX reference ON products_bundle__declination (reference)');
$this->addSql('CREATE INDEX ean13 ON products_bundle__declination (ean13)');
$this->addSql('CREATE INDEX wholesale_price ON products_bundle__declination (wholesale_price)');
$this->addSql('CREATE INDEX sell_price ON products_bundle__declination (sell_price)');
$this->addSql('CREATE INDEX initial_unit ON products_bundle__declination (initial_unit)');
$this->addSql('CREATE INDEX weight ON products_bundle__declination (weight)');
$this->addSql('CREATE INDEX name ON products_bundle__eco_part (name)');
$this->addSql('CREATE INDEX reference ON products_bundle__eco_part (reference)');
$this->addSql('CREATE INDEX amount ON products_bundle__eco_part (amount)');
$this->addSql('CREATE INDEX name ON products_bundle__eco_part_group (name)');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4AB2A824D8');
$this->addSql('DROP INDEX IDX_C6C10D4AB2A824D8 ON products_bundle__product');
$this->addSql('ALTER TABLE products_bundle__product ADD eco_part_amount NUMERIC(20, 6) DEFAULT NULL, CHANGE tax_id tax_rule_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4A3506A35B FOREIGN KEY (tax_rule_id) REFERENCES tax_rule (id)');
$this->addSql('CREATE INDEX IDX_C6C10D4A3506A35B ON products_bundle__product (tax_rule_id)');
$this->addSql('CREATE INDEX reference ON products_bundle__product (reference)');
$this->addSql('CREATE INDEX name ON products_bundle__product (name)');
$this->addSql('CREATE INDEX wholesale_price ON products_bundle__product (wholesale_price)');
$this->addSql('CREATE INDEX sell_price ON products_bundle__product (sell_price)');
$this->addSql('CREATE INDEX number ON products_bundle__product_type (number)');
$this->addSql('CREATE INDEX name ON products_bundle__product_type (name)');
$this->addSql('CREATE INDEX internal_name ON sales_bundle__credit_note (internal_name)');
$this->addSql('CREATE INDEX reference ON sales_bundle__credit_note (reference)');
$this->addSql('CREATE INDEX total_amount_untaxed ON sales_bundle__credit_note (total_amount_untaxed)');
$this->addSql('CREATE INDEX total_amount ON sales_bundle__credit_note (total_amount)');
$this->addSql('CREATE INDEX validated_at ON sales_bundle__credit_note (validated_at)');
$this->addSql('CREATE INDEX canceled_at ON sales_bundle__credit_note (canceled_at)');
$this->addSql('CREATE INDEX created_at ON sales_bundle__credit_note (created_at)');
$this->addSql('CREATE INDEX internal_name ON sales_bundle__invoice (internal_name)');
$this->addSql('CREATE INDEX reference ON sales_bundle__invoice (reference)');
$this->addSql('CREATE INDEX total_amount_untaxed ON sales_bundle__invoice (total_amount_untaxed)');
$this->addSql('CREATE INDEX total_amount ON sales_bundle__invoice (total_amount)');
$this->addSql('CREATE INDEX residual ON sales_bundle__invoice (residual)');
$this->addSql('CREATE INDEX validated_at ON sales_bundle__invoice (validated_at)');
$this->addSql('CREATE INDEX canceled_at ON sales_bundle__invoice (canceled_at)');
$this->addSql('CREATE INDEX created_at ON sales_bundle__invoice (created_at)');
$this->addSql('CREATE INDEX number ON sales_bundle__line_type (number)');
$this->addSql('CREATE INDEX internal_name ON sales_bundle__order (internal_name)');
$this->addSql('CREATE INDEX reference ON sales_bundle__order (reference)');
$this->addSql('CREATE INDEX total_amount_untaxed ON sales_bundle__order (total_amount_untaxed)');
$this->addSql('CREATE INDEX total_amount ON sales_bundle__order (total_amount)');
$this->addSql('CREATE INDEX created_at ON sales_bundle__order (created_at)');
$this->addSql('CREATE INDEX color ON sales_bundle__order_state (color)');
$this->addSql('CREATE INDEX text_color ON sales_bundle__order_state (text_color)');
$this->addSql('CREATE INDEX name ON sales_bundle__order_state (name)');
$this->addSql('CREATE INDEX delivered ON sales_bundle__order_state (delivered)');
$this->addSql('CREATE INDEX invoiced ON sales_bundle__order_state (invoiced)');
$this->addSql('CREATE INDEX is_active ON sales_bundle__order_state (is_active)');
$this->addSql('CREATE INDEX is_default ON sales_bundle__order_state (is_default)');
$this->addSql('CREATE INDEX payment_date ON sales_bundle__payment (payment_date)');
$this->addSql('CREATE INDEX reference ON sales_bundle__payment (reference)');
$this->addSql('CREATE INDEX receipt ON sales_bundle__payment (receipt)');
$this->addSql('CREATE INDEX refund ON sales_bundle__payment (refund)');
$this->addSql('CREATE INDEX name ON sales_bundle__payment_method (name)');
$this->addSql('CREATE INDEX is_invoice ON sales_bundle__payment_method (is_invoice)');
$this->addSql('CREATE INDEX is_credit_note ON sales_bundle__payment_method (is_credit_note)');
$this->addSql('CREATE INDEX is_active ON sales_bundle__payment_method (is_active)');
$this->addSql('CREATE INDEX name ON sales_bundle__payment_term (name)');
$this->addSql('CREATE INDEX days_delay ON sales_bundle__payment_term (days_delay)');
$this->addSql('CREATE INDEX end_month ON sales_bundle__payment_term (end_month)');
$this->addSql('CREATE INDEX is_active ON sales_bundle__payment_term (is_active)');
$this->addSql('CREATE INDEX is_default ON sales_bundle__payment_term (is_default)');
$this->addSql('CREATE INDEX internal_name ON sales_bundle__quotation (internal_name)');
$this->addSql('CREATE INDEX reference ON sales_bundle__quotation (reference)');
$this->addSql('CREATE INDEX total_amount_untaxed ON sales_bundle__quotation (total_amount_untaxed)');
$this->addSql('CREATE INDEX total_amount ON sales_bundle__quotation (total_amount)');
$this->addSql('CREATE INDEX validated_at ON sales_bundle__quotation (validated_at)');
$this->addSql('CREATE INDEX created_at ON sales_bundle__quotation (created_at)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE products_bundle__brand_translations (id INT AUTO_INCREMENT NOT NULL, object_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', locale VARCHAR(8) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, field VARCHAR(32) CHARACTER SET utf8mb4 NOT NULL COLLATE `utf8mb4_unicode_ci`, content LONGTEXT CHARACTER SET utf8mb4 DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, INDEX IDX_2941B107232D562B (object_id), UNIQUE INDEX lookup_unique_idx (locale, object_id, field), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'\' ');
$this->addSql('ALTER TABLE products_bundle__brand_translations ADD CONSTRAINT FK_2941B107232D562B FOREIGN KEY (object_id) REFERENCES products_bundle__brand (id) ON DELETE CASCADE');
$this->addSql('DROP INDEX name ON categories_bundle__category');
$this->addSql('ALTER TABLE categories_bundle__category CHANGE name name VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE description description LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE categories_bundle__category_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE configuration CHANGE name name VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE value value LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE context CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE address address VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE address2 address2 VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE postcode postcode VARCHAR(32) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE city city VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE phone phone VARCHAR(32) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE email email VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE website website VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE vat_number vat_number VARCHAR(32) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE siren siren VARCHAR(16) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE siret siret VARCHAR(16) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE ape ape VARCHAR(8) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE country CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE iso_code iso_code VARCHAR(6) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE area_code area_code VARCHAR(6) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE country_state CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE iso_code iso_code VARCHAR(6) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE country_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE country_zone CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE country_zone_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE cron_job CHANGE name name VARCHAR(191) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE command command VARCHAR(1024) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE schedule schedule VARCHAR(191) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE description description VARCHAR(191) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE cron_report CHANGE output output LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE error error LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE currency CHANGE name name VARCHAR(64) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE iso_code iso_code VARCHAR(6) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE change_rate change_rate NUMERIC(20, 12) DEFAULT \'1.000000000000\' NOT NULL');
$this->addSql('ALTER TABLE customers_bundle__customer CHANGE name name VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE firstname firstname VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE lastname lastname VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE address address VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE address_2 address_2 VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE postcode postcode VARCHAR(12) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE city city VARCHAR(50) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE vat_number vat_number VARCHAR(32) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE phone phone VARCHAR(32) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE phone_mobile phone_mobile VARCHAR(32) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE email email VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE website website VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE internal_note internal_note LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE customers_bundle__customer_type CHANGE name name VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE ext_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE object_class object_class VARCHAR(191) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE foreign_key foreign_key VARCHAR(64) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE file_manager CHANGE key_path key_path VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE original_filename original_filename LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE mime_type mime_type VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE extension extension VARCHAR(10) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE language CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE iso_code iso_code VARCHAR(3) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE locale locale VARCHAR(6) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE messenger_messages CHANGE body body LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE headers headers LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE queue_name queue_name VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE notification CHANGE object object LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE render render LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX name ON products_bundle__attribute');
$this->addSql('ALTER TABLE products_bundle__attribute CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX name ON products_bundle__attribute_group');
$this->addSql('ALTER TABLE products_bundle__attribute_group CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE products_bundle__attribute_group_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE products_bundle__attribute_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX name ON products_bundle__brand');
$this->addSql('ALTER TABLE products_bundle__brand CHANGE name name VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX reference ON products_bundle__declination');
$this->addSql('DROP INDEX ean13 ON products_bundle__declination');
$this->addSql('DROP INDEX wholesale_price ON products_bundle__declination');
$this->addSql('DROP INDEX sell_price ON products_bundle__declination');
$this->addSql('DROP INDEX initial_unit ON products_bundle__declination');
$this->addSql('DROP INDEX weight ON products_bundle__declination');
$this->addSql('ALTER TABLE products_bundle__declination CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE ean13 ean13 VARCHAR(13) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX name ON products_bundle__eco_part');
$this->addSql('DROP INDEX reference ON products_bundle__eco_part');
$this->addSql('DROP INDEX amount ON products_bundle__eco_part');
$this->addSql('ALTER TABLE products_bundle__eco_part CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX name ON products_bundle__eco_part_group');
$this->addSql('ALTER TABLE products_bundle__eco_part_group CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE products_bundle__eco_part_group_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE products_bundle__eco_part_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A3506A35B');
$this->addSql('DROP INDEX IDX_C6C10D4A3506A35B ON products_bundle__product');
$this->addSql('DROP INDEX reference ON products_bundle__product');
$this->addSql('DROP INDEX name ON products_bundle__product');
$this->addSql('DROP INDEX wholesale_price ON products_bundle__product');
$this->addSql('DROP INDEX sell_price ON products_bundle__product');
$this->addSql('ALTER TABLE products_bundle__product DROP eco_part_amount, CHANGE name name VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE reference reference VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE summary summary VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE ean13 ean13 VARCHAR(13) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE description description LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE tax_rule_id tax_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE products_bundle__product ADD CONSTRAINT FK_C6C10D4AB2A824D8 FOREIGN KEY (tax_id) REFERENCES tax (id)');
$this->addSql('CREATE INDEX IDX_C6C10D4AB2A824D8 ON products_bundle__product (tax_id)');
$this->addSql('ALTER TABLE products_bundle__product_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX number ON products_bundle__product_type');
$this->addSql('DROP INDEX name ON products_bundle__product_type');
$this->addSql('ALTER TABLE products_bundle__product_type CHANGE name name VARCHAR(40) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE products_bundle__product_type_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE profile CHANGE name name VARCHAR(64) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE roles roles LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('DROP INDEX internal_name ON sales_bundle__credit_note');
$this->addSql('DROP INDEX reference ON sales_bundle__credit_note');
$this->addSql('DROP INDEX total_amount_untaxed ON sales_bundle__credit_note');
$this->addSql('DROP INDEX total_amount ON sales_bundle__credit_note');
$this->addSql('DROP INDEX validated_at ON sales_bundle__credit_note');
$this->addSql('DROP INDEX canceled_at ON sales_bundle__credit_note');
$this->addSql('DROP INDEX created_at ON sales_bundle__credit_note');
$this->addSql('ALTER TABLE sales_bundle__credit_note CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE internal_name internal_name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE external_name external_name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__credit_note_line CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE name name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE description description LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__delivery_note CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__delivery_note_line CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('DROP INDEX internal_name ON sales_bundle__invoice');
$this->addSql('DROP INDEX reference ON sales_bundle__invoice');
$this->addSql('DROP INDEX total_amount_untaxed ON sales_bundle__invoice');
$this->addSql('DROP INDEX total_amount ON sales_bundle__invoice');
$this->addSql('DROP INDEX residual ON sales_bundle__invoice');
$this->addSql('DROP INDEX validated_at ON sales_bundle__invoice');
$this->addSql('DROP INDEX canceled_at ON sales_bundle__invoice');
$this->addSql('DROP INDEX created_at ON sales_bundle__invoice');
$this->addSql('ALTER TABLE sales_bundle__invoice CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE internal_name internal_name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE external_name external_name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__invoice_line CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE name name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE description description LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('DROP INDEX number ON sales_bundle__line_type');
$this->addSql('ALTER TABLE sales_bundle__line_type CHANGE name name VARCHAR(40) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE sales_bundle__line_type_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX internal_name ON sales_bundle__order');
$this->addSql('DROP INDEX reference ON sales_bundle__order');
$this->addSql('DROP INDEX total_amount_untaxed ON sales_bundle__order');
$this->addSql('DROP INDEX total_amount ON sales_bundle__order');
$this->addSql('DROP INDEX created_at ON sales_bundle__order');
$this->addSql('ALTER TABLE sales_bundle__order CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE internal_name internal_name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE external_name external_name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__order_line CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE name name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE description description LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('DROP INDEX color ON sales_bundle__order_state');
$this->addSql('DROP INDEX text_color ON sales_bundle__order_state');
$this->addSql('DROP INDEX name ON sales_bundle__order_state');
$this->addSql('DROP INDEX delivered ON sales_bundle__order_state');
$this->addSql('DROP INDEX invoiced ON sales_bundle__order_state');
$this->addSql('DROP INDEX is_active ON sales_bundle__order_state');
$this->addSql('DROP INDEX is_default ON sales_bundle__order_state');
$this->addSql('ALTER TABLE sales_bundle__order_state CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE color color VARCHAR(7) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE text_color text_color VARCHAR(7) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE sales_bundle__order_state_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX payment_date ON sales_bundle__payment');
$this->addSql('DROP INDEX reference ON sales_bundle__payment');
$this->addSql('DROP INDEX receipt ON sales_bundle__payment');
$this->addSql('DROP INDEX refund ON sales_bundle__payment');
$this->addSql('ALTER TABLE sales_bundle__payment CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX name ON sales_bundle__payment_method');
$this->addSql('DROP INDEX is_invoice ON sales_bundle__payment_method');
$this->addSql('DROP INDEX is_credit_note ON sales_bundle__payment_method');
$this->addSql('DROP INDEX is_active ON sales_bundle__payment_method');
$this->addSql('ALTER TABLE sales_bundle__payment_method CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE sales_bundle__payment_method_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX name ON sales_bundle__payment_term');
$this->addSql('DROP INDEX days_delay ON sales_bundle__payment_term');
$this->addSql('DROP INDEX end_month ON sales_bundle__payment_term');
$this->addSql('DROP INDEX is_active ON sales_bundle__payment_term');
$this->addSql('DROP INDEX is_default ON sales_bundle__payment_term');
$this->addSql('ALTER TABLE sales_bundle__payment_term CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE sales_bundle__payment_term_translations CHANGE locale locale VARCHAR(8) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE field field VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE content content LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('DROP INDEX internal_name ON sales_bundle__quotation');
$this->addSql('DROP INDEX reference ON sales_bundle__quotation');
$this->addSql('DROP INDEX total_amount_untaxed ON sales_bundle__quotation');
$this->addSql('DROP INDEX total_amount ON sales_bundle__quotation');
$this->addSql('DROP INDEX validated_at ON sales_bundle__quotation');
$this->addSql('DROP INDEX created_at ON sales_bundle__quotation');
$this->addSql('ALTER TABLE sales_bundle__quotation CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE internal_name internal_name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE external_name external_name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE sales_bundle__quotation_line CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE name name VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE description description LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE options options LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE stocks_bundle__date_type CHANGE name name VARCHAR(50) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE stocks_bundle__location CHANGE x x VARCHAR(20) NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'Aisle\', CHANGE y y VARCHAR(20) NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'Cross-Aisle\', CHANGE z z VARCHAR(20) NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'Height\'');
$this->addSql('ALTER TABLE stocks_bundle__stock CHANGE batch_number batch_number VARCHAR(64) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement_reason CHANGE name name VARCHAR(50) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE stocks_bundle__sub_location CHANGE reference reference VARCHAR(20) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE stocks_bundle__warehouse CHANGE name name VARCHAR(50) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE tax CHANGE name name VARCHAR(64) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE account_number account_number VARCHAR(32) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE tax_rule CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE unit_measure CHANGE name name VARCHAR(40) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE user CHANGE firstname firstname VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE lastname lastname VARCHAR(32) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE email email VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE password password VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE token token VARCHAR(40) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE config config LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE user_login_log CHANGE ipv4 ipv4 VARCHAR(19) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE ipv6 ipv6 VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
}
}