welcome back to dyb-tech

This commit is contained in:
Daniel Guzman
2024-05-18 02:28:01 +02:00
parent 9513cdba09
commit 9f30bc98c7
6149 changed files with 668407 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace Doctrine\Migrations\Exception;
use Doctrine\Migrations\AbstractMigration;
use UnexpectedValueException;
use function get_debug_type;
use function sprintf;
final class MigrationConfigurationConflict extends UnexpectedValueException implements MigrationException
{
public static function migrationIsNotTransactional(AbstractMigration $migration): self
{
return new self(sprintf(
<<<'EXCEPTION'
Context: attempting to execute migrations with all-or-nothing enabled
Problem: migration %s is marked as non-transactional
Solution: disable all-or-nothing in configuration or by command-line option, or enable transactions for all migrations
EXCEPTION,
get_debug_type($migration),
));
}
}