final class AlterationRefused
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

An ALTER TABLE request SQLite refuses because of what it adds or drops.

Source: https://sqlite.org/lang_altertable.html.

Reporting an added UNIQUE columndoctest
(new \SqlSemantics\Platform\Sqlite\Semantics())->analyze('ALTER TABLE t ADD COLUMN code TEXT UNIQUE') // throws \SqlSemantics\Platform\Sqlite\Model\Diagnostic\SemanticException: A UNIQUE column cannot be added.

Properties§

Methods§

public function __construct(public AlterationObstacle $obstacle)

Parameters

$obstacleAlterationObstacleWhy the request is refused
public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 5§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 4

Relations§

Instantiated in 2