<?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 Version20231023090200 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 private_community (id INT AUTO_INCREMENT NOT NULL, business_name VARCHAR(255) NOT NULL, business_start_date DATETIME NOT NULL, business_license VARCHAR(255) DEFAULT NULL, annual_revenue NUMERIC(10, 2) DEFAULT NULL, num_employees INT DEFAULT NULL, num_projects_year INT DEFAULT NULL, avg_project_budget NUMERIC(10, 2) DEFAULT NULL, business_full_time_spent VARCHAR(255) DEFAULT NULL, business_part_time_spent VARCHAR(255) DEFAULT NULL, website VARCHAR(255) DEFAULT NULL, instagram_handle VARCHAR(50) DEFAULT NULL, bio LONGTEXT DEFAULT NULL, design_association VARCHAR(255) DEFAULT NULL, top3_brands LONGTEXT DEFAULT NULL, is_approved ENUM('pending', 'approved', 'rejected') NOT NULL, is_active TINYINT(1) NOT NULL, created_by BIGINT NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME DEFAULT NULL, contact_name_1 VARCHAR(255) NOT NULL, title_1 VARCHAR(255) NOT NULL, contact_email_1 VARCHAR(100) NOT NULL, contact_phone_1 VARCHAR(20) NOT NULL, contact_address_1 LONGTEXT NOT NULL, contact_city_1 BIGINT NOT NULL, contact_state_1 BIGINT NOT NULL, contact_zip_code_1 VARCHAR(20) NOT NULL, contact_name_2 VARCHAR(255) DEFAULT NULL, title_2 VARCHAR(255) DEFAULT NULL, contact_email_2 VARCHAR(100) DEFAULT NULL, contact_phone_2 VARCHAR(20) DEFAULT NULL, contact_address_2 LONGTEXT DEFAULT NULL, contact_city_2 BIGINT DEFAULT NULL, contact_state_2 BIGINT DEFAULT NULL, contact_zip_code_2 VARCHAR(20) DEFAULT NULL, contact_name_3 VARCHAR(255) DEFAULT NULL, title_3 VARCHAR(255) DEFAULT NULL, contact_email_3 VARCHAR(100) DEFAULT NULL, contact_phone_3 VARCHAR(20) DEFAULT NULL, contact_address_3 LONGTEXT DEFAULT NULL, contact_city_3 BIGINT DEFAULT NULL, contact_state_3 BIGINT DEFAULT NULL, contact_zip_code_3 VARCHAR(20) DEFAULT NULL, contact_bod_1 DATETIME DEFAULT NULL, contact_bod_2 DATETIME DEFAULT NULL, contact_bod_3 BIGINT DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB");
$this->addSql("ALTER TABLE `private_community` CHANGE `contact_bod_3` `contact_bod_3` DATETIME NULL DEFAULT NULL;");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE private_community');
$this->addSql('ALTER TABLE user CHANGE user_type user_type VARCHAR(200) DEFAULT NULL COMMENT \'0 => backend, 1 => frontend\', CHANGE user_role_type user_role_type VARCHAR(255) DEFAULT NULL, CHANGE styles styles TEXT DEFAULT NULL');
}
}