lib/Doctrine/DBAL/Platforms/OraclePlatform.php 1 location
|
@@ 186-193 (lines=8) @@
|
183 |
|
* Therefore we can use MINVALUE to be able to get a hint what START WITH was for later introspection |
184 |
|
* in {@see listSequences()} |
185 |
|
*/ |
186 |
|
public function getCreateSequenceSQL(Sequence $sequence) |
187 |
|
{ |
188 |
|
return 'CREATE SEQUENCE ' . $sequence->getQuotedName($this) . |
189 |
|
' START WITH ' . $sequence->getInitialValue() . |
190 |
|
' MINVALUE ' . $sequence->getInitialValue() . |
191 |
|
' INCREMENT BY ' . $sequence->getAllocationSize() . |
192 |
|
$this->getSequenceCacheSQL($sequence); |
193 |
|
} |
194 |
|
|
195 |
|
/** |
196 |
|
* {@inheritDoc} |
lib/Doctrine/DBAL/Platforms/SQLAnywhere12Platform.php 1 location
|
@@ 38-44 (lines=7) @@
|
35 |
|
/** |
36 |
|
* {@inheritdoc} |
37 |
|
*/ |
38 |
|
public function getCreateSequenceSQL(Sequence $sequence) |
39 |
|
{ |
40 |
|
return 'CREATE SEQUENCE ' . $sequence->getQuotedName($this) . |
41 |
|
' INCREMENT BY ' . $sequence->getAllocationSize() . |
42 |
|
' START WITH ' . $sequence->getInitialValue() . |
43 |
|
' MINVALUE ' . $sequence->getInitialValue(); |
44 |
|
} |
45 |
|
|
46 |
|
/** |
47 |
|
* {@inheritdoc} |
lib/Doctrine/DBAL/Platforms/SQLServer2012Platform.php 1 location
|
@@ 46-52 (lines=7) @@
|
43 |
|
/** |
44 |
|
* {@inheritdoc} |
45 |
|
*/ |
46 |
|
public function getCreateSequenceSQL(Sequence $sequence) |
47 |
|
{ |
48 |
|
return 'CREATE SEQUENCE ' . $sequence->getQuotedName($this) . |
49 |
|
' START WITH ' . $sequence->getInitialValue() . |
50 |
|
' INCREMENT BY ' . $sequence->getAllocationSize() . |
51 |
|
' MINVALUE ' . $sequence->getInitialValue(); |
52 |
|
} |
53 |
|
|
54 |
|
/** |
55 |
|
* {@inheritdoc} |
lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location
|
@@ 692-699 (lines=8) @@
|
689 |
|
/** |
690 |
|
* {@inheritDoc} |
691 |
|
*/ |
692 |
|
public function getCreateSequenceSQL(Sequence $sequence) |
693 |
|
{ |
694 |
|
return 'CREATE SEQUENCE ' . $sequence->getQuotedName($this) . |
695 |
|
' INCREMENT BY ' . $sequence->getAllocationSize() . |
696 |
|
' MINVALUE ' . $sequence->getInitialValue() . |
697 |
|
' START ' . $sequence->getInitialValue() . |
698 |
|
$this->getSequenceCacheSQL($sequence); |
699 |
|
} |
700 |
|
|
701 |
|
/** |
702 |
|
* {@inheritDoc} |