sphinx\Command resetSequence()

resetSequence() public method

Creates a SQL command for resetting the sequence value of a table's primary key.

The sequence will be reset such that the primary key of the next new row inserted will have the specified value or 1.

public $this resetSequence ( $table, $value = null )
$table string

The name of the table whose primary key sequence will be reset

$value mixed

The value for the primary key of the next new row inserted. If this is not set, the next new row's primary key will have a value 1.

return $this

The command object itself

throws yii\base\NotSupportedException

if this is not supported by the underlying DBMS

doc_Yii
2016-10-30 17:11:52
Comments
Leave a Comment

Please login to continue.