I'm surprised to see that no update function takes care of dropping the old {sequences} table ?
Maybe that was intended ? so that contrib modules still can use its content when they do their own update ? I dunno, just guessing.
If not, attached patch adds an update function to drop it.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | drop_pre_D6_sequences_table.patch | 689 bytes | hass |
| #7 | drop_pre_D6_sequences_table.patch | 691 bytes | hass |
| drop_sequence.patch | 680 bytes | yched |
Comments
Comment #1
hass commentedThere was an discussion about this many month ago and as i remember - the decision was to drop this table for backward compatibility in D7 and not in D6.
Comment #2
hass commentedComment #3
hass commentedComment #4
yched commentedOK, I must've missed that one. Thx hass
Comment #5
catchMight as well do this early in D7. Needs a re-roll though.
Comment #6
dave reidPlus, we are still going to probably need the sequences table for replacing the stupid actions_id table. See #356074: Provide a sequences API.
Comment #7
hass commentedPatch attached.
Comment #9
hass commentedRe-roled
Comment #10
catchI think there's some D6 modules which still use the sequences table (if not there could be custom modules). If it's possible, I think we should consult the schema for the site before dropping it, otherwise just leave it as is.
Comment #11
hass commenteddb_next_idhas been removed in D6... there cannot be any module that use this table. If still used in a module than not in an API way and the module hasn't been upgraded correctly to D6. All D6 modules need to usedb_last_insert_id. Aside we remove the table in D7, not D6. Can you name the modules?Comment #12
catchHere they are. Not obscure modules.
Comment #13
catchSo to remove this, I think we need a sequences module in contrib (even if it's just a hook_schema() and hook_install() and nothing else), and then the schema check here. I don't see a way for all those D6 modules to provide a unified upgrade path to D7 all at the same time otherwise.
Comment #14
hass commentedIf we would consequently drop the table it wouldn't be used any longer :-). No idea why they use obsolete tables.
Comment #15
Leeteq commentedSubscribing.
Comment #16
webchickNow that we actually have a sequences table again, this is won't fix.