Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6038233
TableGeneratorSchemaVisitor.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
TableGeneratorSchemaVisitor.php
View Options
<?php
namespace
Doctrine\DBAL\Id
;
use
Doctrine\DBAL\Schema\Column
;
use
Doctrine\DBAL\Schema\ForeignKeyConstraint
;
use
Doctrine\DBAL\Schema\Index
;
use
Doctrine\DBAL\Schema\Schema
;
use
Doctrine\DBAL\Schema\Sequence
;
use
Doctrine\DBAL\Schema\Table
;
use
Doctrine\DBAL\Schema\Visitor\Visitor
;
use
Doctrine\Deprecations\Deprecation
;
/** @deprecated */
class
TableGeneratorSchemaVisitor
implements
Visitor
{
/** @var string */
private
$generatorTableName
;
/** @param string $generatorTableName */
public
function
__construct
(
$generatorTableName
=
'sequences'
)
{
Deprecation
::
trigger
(
'doctrine/dbal'
,
'https://github.com/doctrine/dbal/pull/4681'
,
'The TableGeneratorSchemaVisitor class is is deprecated.'
,
);
$this
->
generatorTableName
=
$generatorTableName
;
}
/**
* {@inheritDoc}
*/
public
function
acceptSchema
(
Schema
$schema
)
{
$table
=
$schema
->
createTable
(
$this
->
generatorTableName
);
$table
->
addColumn
(
'sequence_name'
,
'string'
);
$table
->
addColumn
(
'sequence_value'
,
'integer'
,
[
'default'
=>
1
]);
$table
->
addColumn
(
'sequence_increment_by'
,
'integer'
,
[
'default'
=>
1
]);
}
/**
* {@inheritDoc}
*/
public
function
acceptTable
(
Table
$table
)
{
}
/**
* {@inheritDoc}
*/
public
function
acceptColumn
(
Table
$table
,
Column
$column
)
{
}
/**
* {@inheritDoc}
*/
public
function
acceptForeignKey
(
Table
$localTable
,
ForeignKeyConstraint
$fkConstraint
)
{
}
/**
* {@inheritDoc}
*/
public
function
acceptIndex
(
Table
$table
,
Index
$index
)
{
}
/**
* {@inheritDoc}
*/
public
function
acceptSequence
(
Sequence
$sequence
)
{
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 4 2026, 19:57 (6 w, 15 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
09/03/2754c8da20347e1bbe218aa80e26
Default Alt Text
TableGeneratorSchemaVisitor.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment