4 * Implements hook_schema().
6 function librejs_schema() {
7 $schema['librejs'] = array(
8 'description' => 'Stores the license and source of each JavaScript file.',
11 'description' => 'Identifier.',
16 'description' => 'The JavaScript file path or external URL.',
22 'description' => 'The license.',
27 'description' => 'The source code URL.',
32 'description' => 'The JavaScript version.',
37 'description' => 'The JavaScript type.',
42 'primary key' => array('id'),
43 'unique keys' => array('data' => array('data')),
49 * Migrate URL for the Modified-BSD license.
51 function librejs_update_7100() {
52 // The URL for Modified-BSD at http://www.gnu.org/licenses/javascript-labels.html
53 // was changed sometime in November 2013.
54 db_update('librejs')->fields(array('license' => 'http://directory.fsf.org/wiki/License:BSD_3Clause'))->condition('license', 'http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5')->execute();