function services_update_7301 in Services 7.3
Update 7301 adds debugging to each endopint to facilitate easier development
File
- ./
services.install, line 200 - Install, uninstall and update the Services module.
Code
function services_update_7301() {
$table = 'services_endpoint';
foreach (array(
'debug' => 0,
'status' => 1,
) as $field => $value) {
if (!db_field_exists($table, $field)) {
db_add_field($table, $field, array(
'type' => 'int',
'not null' => TRUE,
'default' => $value,
));
}
}
}