DX: Rename entity base tables to use bat_

Created on 8 April 2019, over 5 years ago
Updated 19 December 2023, 11 months ago

After installing and enabling the bat and bee modules I had a look at the database to get a feel for the datamodel. I was surprised to find the tables of bat being scattered all over the ordered list of tables, only the field tables using bat_{entity-type}__.

So, to improve DX and to better comply with Drupal naming conventions, I would suggest to rename the base tables of the entities defined by bat to use bat_ as a prefix (apart from any prefix as defined during site install).

It looks like this is possible by just changing the base_table property of the entity annotations and a hook_update() to rename tables in existing installations.

Feature request
Status

Postponed

Version

1.0

Component

Code

Created by

🇫🇷France fietserwin Le Mont-Dore

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