Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
DB
Ddl
Sequence.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\DB\Ddl
;
7
11
class
Sequence
12
{
22
public
function
getCreateSequenceDdl
(
23
$name
,
24
$startNumber = 1,
25
$columnType =
Table::TYPE_INTEGER
,
26
$unsigned =
true
27
) {
28
$format
=
"CREATE TABLE %s (
29
sequence_value %s %s NOT NULL AUTO_INCREMENT,
30
PRIMARY KEY (sequence_value)
31
) AUTO_INCREMENT = %d ENGINE = INNODB"
;
32
33
return
sprintf(
$format
,
$name
, $columnType, $unsigned ?
'UNSIGNED'
:
''
, $startNumber);
34
}
35
42
public
function
dropSequence
(
$name
)
43
{
44
$format
=
"DROP TABLE %s"
;
45
return
sprintf(
$format
,
$name
);
46
}
47
}
Magento\Framework\DB\Ddl
Definition:
Sequence.php:6
Magento\Framework\DB\Ddl\Sequence\dropSequence
dropSequence($name)
Definition:
Sequence.php:42
$format
$format
Definition:
list.phtml:12
Magento\Framework\DB\Ddl\Sequence
Definition:
Sequence.php:11
Magento\Framework\DB\Ddl\Sequence\getCreateSequenceDdl
getCreateSequenceDdl( $name, $startNumber=1, $columnType=Table::TYPE_INTEGER, $unsigned=true)
Definition:
Sequence.php:22
Magento\Framework\DB\Ddl\Table\TYPE_INTEGER
const TYPE_INTEGER
Definition:
Table.php:25
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14