Guest User

Untitled

a guest
Nov 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. /**
  2. * Add {new_column} field to {my_table} table.
  3. */
  4. function MY_MODULE_update_7100() {
  5. $table = 'my_table';
  6. $spec = array(
  7. 'type' => 'int',
  8. 'description' => "blah blah",
  9. 'size'=> 'tiny',
  10. 'default' => NULL,
  11. );
  12. db_add_field($table, 'new_column', $spec);
  13. }
  14.  
  15. $get_entity = entity_load('{my_table}', array(184));
  16. dpm($get_entity) // showing all columns, except the new_column
Add Comment
Please, Sign In to add comment