Console commands: CreateUser (interactive), BackupCommand, RotateLogsCommand. Migrations 20260514: initial schema for app/logs schemas. Config: register new bundles, Doctrine schema filter, Kernel micro-kernel adjustments, deleted unused api.yaml route file and www.conf override. Application service and API controller updates for the full article lifecycle. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
717 B
PHP
30 lines
717 B
PHP
<?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 Version20260514053908 extends AbstractMigration
|
|
{
|
|
public function getDescription(): string
|
|
{
|
|
return '';
|
|
}
|
|
|
|
public function up(Schema $schema): void
|
|
{
|
|
$this->addSql("ALTER TABLE app.api_keys ADD key_prefix VARCHAR(8) NOT NULL DEFAULT ''");
|
|
$this->addSql('ALTER TABLE app.api_keys ALTER COLUMN key_prefix DROP DEFAULT');
|
|
}
|
|
|
|
public function down(Schema $schema): void
|
|
{
|
|
$this->addSql('ALTER TABLE app.api_keys DROP key_prefix');
|
|
}
|
|
}
|