You are here

function hosting_platform_update_6205 in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 platform/hosting_platform.install \hosting_platform_update_6205()
  2. 7.3 platform/hosting_platform.install \hosting_platform_update_6205()

Implements hook_update_N().

Add the 'make_working_copy' column.

File

platform/hosting_platform.install, line 189
Define database schema and update functions for the Platforms module.

Code

function hosting_platform_update_6205() {
  $ret = array();
  $spec = array(
    'make_working_copy' => array(
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => 0,
    ),
  );
  foreach ($spec as $field => $field_spec) {
    db_add_field($ret, 'hosting_platform', $field, $field_spec);
  }
  return $ret;
}