<?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 Version20231026062519 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 memos (id INT AUTO_INCREMENT NOT NULL, memo_category_id VARCHAR(255) NOT NULL, title VARCHAR(255) DEFAULT NULL, sub_title VARCHAR(255) DEFAULT NULL, description LONGTEXT DEFAULT NULL, teaser_1 VARCHAR(255) DEFAULT NULL, teaser_2 VARCHAR(255) DEFAULT NULL, teaser_3 VARCHAR(255) DEFAULT NULL, teaser_4 VARCHAR(255) DEFAULT NULL, listing_image VARCHAR(255) DEFAULT NULL, detail_cover_image VARCHAR(255) DEFAULT NULL, audio_file VARCHAR(255) DEFAULT NULL, is_active TINYINT(1) NOT NULL, is_premium TINYINT(1) DEFAULT NULL, created_on DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', created_by INT NOT NULL, deleted_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', sponser_title VARCHAR(255) DEFAULT NULL, sponser_website VARCHAR(255) DEFAULT NULL, sponser_socialmedia_link VARCHAR(255) 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 memos');
}
}