<?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 Version20231019111716 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 directory_profile (
id INT AUTO_INCREMENT NOT NULL,
type INT NOT NULL ,
company_name VARCHAR(255) NOT NULL,
address VARCHAR(255) NOT NULL,
city BIGINT NOT NULL,
state BIGINT NOT NULL,
country BIGINT NOT NULL,
zipcode INT DEFAULT NULL,
phone VARCHAR(255) NULL,
email VARCHAR(255) NULL,
website VARCHAR(255) NULL,
ig_page VARCHAR(255) NULL,
business_brief VARCHAR(255) NULL,
business_detail TEXT NULL,
photo VARCHAR(255) NULL,
profile_picture VARCHAR(255) NULL,
cover_picture VARCHAR(255) NULL,
portfolio_1 VARCHAR(255) NULL,
portfolio_2 VARCHAR(255) NULL,
portfolio_3 VARCHAR(255) NULL,
portfolio_4 VARCHAR(255) NULL,
portfolio_5 VARCHAR(255) NULL,
is_approved TINYINT(1) NOT NULL,
is_published TINYINT(1) NOT NULL,
is_active TINYINT(1) NOT NULL,
created_by BIGINT NOT NULL,
created_on DATETIME NOT NULL,
deleted_at DATETIME 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 directory_profile');
}
}