Get a list of all tables

Created on 15 November 2024, about 1 month ago

Currently the module allows getting a list of entities present in the Drupal installation. Examples:

drush php:eval "print_r(array_keys(\Drupal::service('auto_increment_alter.mysql')->getEntityList()));"
drush php:eval "print_r(array_keys(\Drupal::service('auto_increment_alter.mysql')->getEntityList('content')));"
drush php:eval "print_r(array_keys(\Drupal::service('auto_increment_alter.mysql')->getEntityList('configuration')));"

Let's have a way to get a list of tables. This can be used to set the incremental value for a single table with something like

drush php:eval "\Drupal::service('auto_increment_alter.mysql')->alterTable([TABLE_NAME], 500);"

Let's add a new method called getTableList which returns an array of table names.

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