migrations/Version20220817041334.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20220817041334 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $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');
  19.     }
  20.     public function down(Schema $schema): void
  21.     {
  22.         // this down() migration is auto-generated, please modify it to your needs
  23.         $this->addSql('DROP TABLE info');
  24.     }
  25. }