<?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 Version20250708120825 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$now = (new \DateTime())->format('Y-m-d H:i:s');
// insert new menu option
$this->addSql("
INSERT IGNORE INTO std_options (created_by, updated_by, machine_name, order_value, path, is_active, created_date, updated_date, menu_section, dropdown_section, icon, name, external_link)
VALUES
-- Content
(1, 1, 'content', 10, null, 1, '$now', '$now', 'navigation', 'content', 'blog', 'content', '/admin/content/content');
");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("DELETE FROM std_options WHERE machine_name = 'content' AND menu_section = 'navigation' AND dropdown_section = 'content'");
}
}