Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
block.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
7 Nov 2008 at 20:45 UTC
Updated:
29 Nov 2008 at 08:32 UTC
Jump to comment: Most recent file
As explained in #140860, for consistency we need all tables to be in singular.
Here is a patch that renames block.module tables so {blocks} becomes {block}, {blocks_roles} becomes {block_role} and {boxes} becomes {box}.
This needs testing.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | drupal_singular_block_tables.patch | 25 KB | recidive |
| #3 | drupal_singular_block_tables.patch | 25 KB | recidive |
| #2 | drupal_singular_block_tables.patch | 24.99 KB | recidive |
| drupal_singular_block_tables.patch | 24.99 KB | recidive |
Comments
Comment #1
dries commentedIf you apply this patch, the simpletests will report many errors.
Comment #2
recidive commentedRe-rolled. All tests pass:
7232 passes, 0 fails, and 0 exceptions.
Comment #3
recidive commentedRe-rolling.
Once we get this one in, I'll work renaming remaining tables.
Comment #4
recidive commentedRe-rolling.
Comment #5
cburschkaLooks good and passes. I've grepped the patched codebase for blocks, boxes (-checkboxes) and blocks_roles to see if anything got overlooked, but I didn't find anything.
I also tried to upgrade an existing D6 site to D7 to see the table get renamed, but this failed completely for unrelated reasons (may file a separate bug report for that - D7 refuses to acknowledge the existing site directory and instead tries unsuccessfully to install a new site on top of it).
The only way that renaming would fail would be a serious bug in db_rename_table, though, and that would have been caught by now.
Comment #6
dries commentedCommitted to CVS HEAD. Thanks.