hesabixCore/hesabixCore/migrations/Version20250809103000.php

25 lines
624 B
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20250809103000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add copy_count to custom_invoice_template';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE custom_invoice_template ADD copy_count INT NOT NULL DEFAULT 0');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE custom_invoice_template DROP COLUMN copy_count');
}
}