<?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 Version20230310093430 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// Insert a new row into the packaging_type table
$this->addSql("INSERT IGNORE INTO packaging_type(name, code, name_trans, description_trans, short_description_trans, uuid)
VALUES
('Stickers', 'packaging_type.stickers', :name_trans, :description_trans, :short_description_trans, UUID())
", [
'name_trans' => json_encode([]),
'description_trans' => json_encode([]),
'short_description_trans' => json_encode([]),
]);
}
public function down(Schema $schema): void
{
// Remove the row from the packaging_type table
$this->addSql('DELETE FROM packaging_type WHERE code = :code', [
'code' => 'packaging_type.stickers',
]);
}
}