5
votes
Accepted
How do I alter a table by using AFTER in hook update?
This isn't supported by the MySQL driver included with core (Drupal\mysql\Driver\Database\mysql\Schema).
You'll either need to keep using the custom query method you mentioned, or create your own ...
1
vote
CPU high usage and database down after performing delete token
In Drupal 7, you could delete strings from the UI.
In Drupal 8, it seems that porting this feature was accidentally overlooked. There is an MR to restore deleting strings from the UI, which is safer ...
1
vote
How to manually delete a node from the database knowing its id
I ended up getting this from ChatGPT but it worked really well. Make sure to add the tables you need (may need other with extensions and other things)
-- Delete nodes
DELETE FROM drhp_node WHERE nid ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
database × 31287 × 1022
8 × 391
entities × 354
views × 239
nodes × 211
users × 117
6 × 107
drush × 94
forms × 89
migrations × 78
performance × 64
installation × 61
taxonomy-terms × 58
caching × 58
theming × 54
hooks × 54
updating × 47
9 × 43
search × 40
configuration × 40
importing-exporting × 39
commerce × 37
webforms × 35
files × 35