<?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 Version20231027055121 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 educations (id INT AUTO_INCREMENT NOT NULL, user_id BIGINT NOT NULL, title VARCHAR(255) NOT NULL, categories VARCHAR(255) NOT NULL, education_type_id BIGINT NOT NULL, sponsor_name VARCHAR(255) DEFAULT NULL, sponsor_website VARCHAR(255) DEFAULT NULL, sponsor_social_media_link VARCHAR(255) DEFAULT NULL, image VARCHAR(255) DEFAULT NULL, audio VARCHAR(255) DEFAULT NULL, duration VARCHAR(255) DEFAULT NULL, ceu INT DEFAULT NULL, upload_date DATETIME DEFAULT NULL, description LONGTEXT DEFAULT NULL, is_premium TINYINT(1) DEFAULT NULL, is_approved VARCHAR(20) DEFAULT NULL, is_active TINYINT(1) DEFAULT NULL, created_on DATETIME DEFAULT NULL, created_by BIGINT NOT NULL, updated_at DATETIME DEFAULT NULL, deleted_at DATETIME 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, 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 educations');
}
}