<?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 Version20210917172123 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("
insert into std_attributes_content (attribute_id,name,language_code,created_by,updated_by,created_date,updated_date)
SELECT a.id,a.name,l.language_code,1,1,now(),now()
FROM std_attributes a, std_languages l
WHERE l.is_active=1;
");
$this->addSql("
insert into std_attributes_values_content (attribute_value_id,label,language_code)
SELECT a.id,a.label,l.language_code
FROM std_attributes_values a, std_languages l
WHERE l.is_active=1;
");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
}
}