Allow use of regexps for table prefixes in settings.php

Created on 6 November 2012, about 12 years ago
Updated 26 June 2023, over 1 year ago

I just wondering what you guys think about allowing use of regexps for table prefixes in settings.php? I had to use it for cases where most of tables were shared except few. Specificaly I had to separate all cache_* tables. I am using Drupal 7 and achieved this by slight modifications to setPrefix() and prefixTables() to use preg_replace instead of str_replace. Just wondering if D8 might benefit from this feature as well may be?

Patch attached for D7. D8 was changed so it will not apply as is. I just providing it to better describe feature I am requesting.

✨ Feature request
Status

Closed: outdated

Version

9.5

Component
DatabaseΒ  β†’

Last updated 2 days ago

  • Maintained by
  • πŸ‡³πŸ‡±Netherlands @daffie
Created by

πŸ‡ΊπŸ‡ΈUnited States pavel.karoukin

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024