Documentation

RemoveNamespacedAssets extends AbstractVisitor
in package

Removes assets from a schema that are not in the default namespace.

Some databases such as MySQL support cross databases joins, but don't allow to call DDLs to a database from another connected database. Before a schema is serialized into SQL this visitor can cleanup schemas with non default namespaces.

This visitor filters all these non-default namespaced tables and sequences and removes them from the Schema instance.

Tags
deprecated

Do not use namespaces if the target database platform doesn't support them.

Table of Contents

Properties

$schema  : Schema|null

Methods

__construct()  : mixed
acceptColumn()  : void
acceptForeignKey()  : void
acceptIndex()  : void
acceptNamespace()  : void
Accepts a schema namespace name.
acceptSchema()  : void
acceptSequence()  : void
acceptTable()  : void

Properties

Methods

acceptNamespace()

Accepts a schema namespace name.

public acceptNamespace(mixed $namespaceName) : void
Parameters
$namespaceName : mixed

The schema namespace name to accept.


        
On this page

Search results