By editor, 12 January, 2016 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); Tags Drupal 8 Code Database Add new comment Comments1 You must have JavaScript enabled to use this form. Your name Subject Comment About text formats Plain text No HTML tags allowed. Lines and paragraphs break automatically. Web page addresses and email addresses turn into links automatically. dd dd Reply
Comments1
dd
dd