Closed (works as designed)
Project:
Drupal core
Version:
6.5
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Nov 2009 at 15:09 UTC
Updated:
19 Nov 2009 at 15:17 UTC
I used drupal_write_record, passing a table's name that I added later using drupal_update_x hook.
But it doesn't work and I studied its code. I found drupal_get_schema function and I studied its code also. Finally i discovered in its $schema array there aren't table added not included in hook schema.
Comments
Comment #1
heine commentedYour hook_schema should always return the updated schema. In other words: If you add a table in hook_update_N, also add it to hook_schema.