<?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 Version20220607202406 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 form_contact (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL, message LONGTEXT DEFAULT NULL, utm_source VARCHAR(255) DEFAULT NULL, utm_medium VARCHAR(255) DEFAULT NULL, utm_campaign VARCHAR(255) DEFAULT NULL, utm_content VARCHAR(255) DEFAULT NULL, utm_term VARCHAR(255) DEFAULT NULL, gclid VARCHAR(255) DEFAULT NULL, created_at DATETIME DEFAULT NULL, modified_at DATETIME DEFAULT NULL, created_user INT DEFAULT NULL, modified_user INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE forms (id INT AUTO_INCREMENT NOT NULL, contact_receiver VARCHAR(255) NOT NULL, technical_assistance_title VARCHAR(255) DEFAULT NULL, technical_assistance_receiver VARCHAR(255) NOT NULL, promotion_receiver VARCHAR(255) NOT NULL, application_receiver VARCHAR(255) NOT NULL, truck_quotation_receiver VARCHAR(255) NOT NULL, service_quotation_receiver VARCHAR(255) NOT NULL, claim_p1_title VARCHAR(255) DEFAULT NULL, claim_document_types LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', claim_p2_title VARCHAR(255) DEFAULT NULL, claim_goods LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', claim_p3_title VARCHAR(255) DEFAULT NULL, claim_types LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', claim_p4_title VARCHAR(255) DEFAULT NULL, claim_response_days INT DEFAULT 5, claim_description LONGTEXT DEFAULT NULL, claim_notes LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', claim_receiver VARCHAR(255) NOT NULL, created_at DATETIME DEFAULT NULL, modified_at DATETIME DEFAULT NULL, created_user INT DEFAULT NULL, modified_user INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE home (id INT AUTO_INCREMENT NOT NULL, banner LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', detail_vw_show TINYINT(1) DEFAULT 0 NOT NULL, detail_vw_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', detail_vw_logo LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', detail_vw_link VARCHAR(255) DEFAULT NULL, detail_vw_target TINYINT(1) DEFAULT 0 NOT NULL, detail_man_show TINYINT(1) DEFAULT 0 NOT NULL, detail_man_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', detail_man_logo LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', detail_man_link VARCHAR(255) DEFAULT NULL, detail_man_target TINYINT(1) DEFAULT 0 NOT NULL, detail_network_show TINYINT(1) DEFAULT 0 NOT NULL, detail_network_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', detail_network_title VARCHAR(255) DEFAULT NULL, detail_network_link VARCHAR(255) DEFAULT NULL, detail_network_target TINYINT(1) DEFAULT 0 NOT NULL, detail_information_show TINYINT(1) DEFAULT 0 NOT NULL, detail_information_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', detail_information_title VARCHAR(255) DEFAULT NULL, detail_information_link VARCHAR(255) DEFAULT NULL, detail_information_target TINYINT(1) DEFAULT 0 NOT NULL, spare_parts_show TINYINT(1) DEFAULT 0 NOT NULL, spare_parts_image_desktop LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', spare_parts_image_tablet LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', spare_parts_image_mobile LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', spare_parts_title_1 VARCHAR(255) DEFAULT NULL, spare_parts_title_2 VARCHAR(255) DEFAULT NULL, spare_parts_button_text VARCHAR(255) DEFAULT NULL, blog_show TINYINT(1) DEFAULT 0 NOT NULL, blog_title VARCHAR(255) DEFAULT NULL, blog_button_text VARCHAR(255) DEFAULT NULL, created_at DATETIME DEFAULT NULL, modified_at DATETIME DEFAULT NULL, created_user INT DEFAULT NULL, modified_user INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE info (id INT AUTO_INCREMENT NOT NULL, address VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, shop_active TINYINT(1) DEFAULT 0 NOT NULL, shop_text VARCHAR(255) DEFAULT NULL, header_logo LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', footer_logo LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', sent_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', sent_title VARCHAR(255) NOT NULL, sent_text LONGTEXT NOT NULL, sent_button_home_text VARCHAR(255) NOT NULL, error_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', error_title VARCHAR(255) NOT NULL, error_text LONGTEXT NOT NULL, error_button_home_text VARCHAR(255) NOT NULL, error_404_image LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', error_404_title VARCHAR(255) NOT NULL, error_404_text LONGTEXT NOT NULL, error_404_button_home_text VARCHAR(255) NOT NULL, social_whatsapp_show TINYINT(1) NOT NULL, social_whatsapp_number VARCHAR(255) DEFAULT NULL, social_whatsapp_message VARCHAR(255) DEFAULT NULL, social_facebook_show TINYINT(1) NOT NULL, social_facebook_link VARCHAR(255) DEFAULT NULL, social_linkedin_show TINYINT(1) NOT NULL, social_linkedin_link VARCHAR(255) DEFAULT NULL, social_blog_show TINYINT(1) NOT NULL, social_blog_link VARCHAR(255) DEFAULT NULL, social_blog_categories VARCHAR(255) DEFAULT NULL, social_blog_posts INT DEFAULT 4, seo_indexing TINYINT(1) DEFAULT 0 NOT NULL, seo_favicon LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', seo_title VARCHAR(255) DEFAULT NULL, seo_description VARCHAR(255) DEFAULT NULL, scripts_meta LONGTEXT DEFAULT NULL, scripts_header LONGTEXT DEFAULT NULL, scripts_body LONGTEXT DEFAULT NULL, scripts_footer LONGTEXT DEFAULT NULL, created_at DATETIME DEFAULT NULL, modified_at DATETIME DEFAULT NULL, created_user INT DEFAULT NULL, modified_user INT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE form_contact');
$this->addSql('DROP TABLE forms');
$this->addSql('DROP TABLE home');
$this->addSql('DROP TABLE info');
}
}