<?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 Version20220218143106 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 currency CHANGE change_rate change_rate NUMERIC(20, 12) DEFAULT \'1\' NOT NULL');
$this->addSql('ALTER TABLE products_bundle__declination ADD unit_measure_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE products_bundle__declination ADD CONSTRAINT FK_CC8BB1205E0BEBC0 FOREIGN KEY (unit_measure_id) REFERENCES unit_measure (id)');
$this->addSql('CREATE INDEX IDX_CC8BB1205E0BEBC0 ON products_bundle__declination (unit_measure_id)');
$this->addSql('ALTER TABLE stocks_bundle__product_configuration ADD unique_stock_picker TINYINT(1) DEFAULT NULL, DROP type_id');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD delivery_note_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement ADD CONSTRAINT FK_11E6623A2CF3B78B FOREIGN KEY (delivery_note_id) REFERENCES sales_bundle__delivery_note (id)');
$this->addSql('CREATE INDEX IDX_11E6623A2CF3B78B ON stocks_bundle__stock_movement (delivery_note_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$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('ALTER TABLE products_bundle__attribute CHANGE name name VARCHAR(128) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$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('ALTER TABLE products_bundle__brand CHANGE name name VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE products_bundle__declination DROP FOREIGN KEY FK_CC8BB1205E0BEBC0');
$this->addSql('DROP INDEX IDX_CC8BB1205E0BEBC0 ON products_bundle__declination');
$this->addSql('ALTER TABLE products_bundle__declination DROP unit_measure_id, CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE ean13 ean13 VARCHAR(13) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$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('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 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`');
$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('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('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('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('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('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('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('ALTER TABLE sales_bundle__payment CHANGE reference reference VARCHAR(128) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$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('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('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__product_configuration ADD type_id INT NOT NULL, DROP unique_stock_picker');
$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 DROP FOREIGN KEY FK_11E6623A2CF3B78B');
$this->addSql('DROP INDEX IDX_11E6623A2CF3B78B ON stocks_bundle__stock_movement');
$this->addSql('ALTER TABLE stocks_bundle__stock_movement DROP delivery_note_id');
$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`');
}
}