Question
How to set the initial AUTO_INCREMENT value of a mysql table ?
Example:
$con = Drupal\Core\Database\Database::getConnection();
$start_value = 100000;
$query = "ALTER TABLE {the_table} AUTO_INCREMENT = $start_value";
$con->query($query);
Comments
dd
dd
Add new comment