You are here

function eck_update_7003 in Entity Construction Kit (ECK) 7

Same name and namespace in other branches
  1. 7.3 eck.install \eck_update_7003()
  2. 7.2 eck.install \eck_update_7003()

Adds the properties column to the eck table.

File

./eck.install, line 261
This install file creates a table for the this module to store information about entities. Well, the only information that it needs to store is a name and a label for each entity created, the rest of the information is generated by the functions.

Code

function eck_update_7003() {
  db_add_field('eck', 'properties', array(
    'type' => 'text',
    'not null' => TRUE,
    'serialize' => TRUE,
    'initial' => serialize(array(
      'uuid' => 1,
      'uid' => 1,
      'created' => 1,
      'changed' => 1,
      'state' => 1,
    )),
    'description' => 'A serialized list of additional properties attached to this entity.',
  ));
}