<?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 Version20220817041334 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 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_button_text VARCHAR(255) DEFAULT NULL, shop_link VARCHAR(255) DEFAULT NULL, shop_target TINYINT(1) DEFAULT 0 NOT NULL, roulette_active TINYINT(1) DEFAULT 0 NOT NULL, roulette_text VARCHAR(255) DEFAULT NULL, roulette_image JSON NOT NULL, roulette_banner_home JSON NOT NULL, header_logo_color JSON NOT NULL, header_logo_white JSON NOT NULL, footer_logo JSON NOT NULL, sent_title VARCHAR(255) NOT NULL, sent_text LONGTEXT NOT NULL, sent_button_home_text VARCHAR(255) NOT NULL, sent_button_models_text VARCHAR(255) NOT NULL, error_title VARCHAR(255) NOT NULL, error_text LONGTEXT NOT NULL, error_button_home_text VARCHAR(255) NOT NULL, error_button_models_text VARCHAR(255) NOT NULL, error_404_title VARCHAR(255) NOT NULL, error_404_text LONGTEXT NOT NULL, error_404_button_home_text VARCHAR(255) NOT NULL, error_404_button_models_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_youtube_show TINYINT(1) NOT NULL, social_youtube_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 JSON NOT NULL, 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 info');
}
}