Get the current AUTO_INCREMENT value for a table

Created on 16 November 2024, about 1 month ago

Currently allows altering the AUTO_INCREMENT of tables. In some cases, it would be useful to know the current value before trying to set a new one. Let's create a way to fetch the current value. Example:

drush php:eval "\Drupal::service('auto_increment_alter.mysql')->getTableAutoIncrementValue('node');"

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇳🇮Nicaragua dinarcon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024