function commerce_license_update_7104 in Commerce License 7
Update all timestamp columns to use bigint instead of int.
File
- ./
commerce_license.install, line 385
Code
function commerce_license_update_7104(&$sandbox) {
$schema = drupal_get_schema_unprocessed('commerce_license', 'commerce_license');
db_change_field('commerce_license', 'expires', 'expires', $schema['fields']['expires']);
db_change_field('commerce_license', 'granted', 'granted', $schema['fields']['granted']);
$schema = drupal_get_schema_unprocessed('commerce_license', 'commerce_license_revision');
db_change_field('commerce_license_revision', 'revision_created', 'revision_created', $schema['fields']['revision_created']);
db_change_field('commerce_license_revision', 'revision_ended', 'revision_ended', $schema['fields']['revision_ended']);
return t('Updated all timestamp fields to accomodate larger values.');
}