easymeta.install in Easymeta 8
Install, update and uninstall functions for the easymeta module.
File
easymeta.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the easymeta module.
*/
/**
* Implements hook_schema().
*/
function easymeta_schema() {
$schema['easymeta'] = array(
'description' => 'easymeta',
'fields' => array(
'emid' => array(
'description' => 'Primary Key: unique ID for Meta.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'url' => array(
'description' => 'url',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => NULL,
),
'language' => array(
'description' => 'language',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => NULL,
),
'metas' => array(
'description' => 'language',
'type' => 'blob',
'not null' => FALSE,
'default' => NULL,
),
),
'primary key' => array(
'emid',
),
);
return $schema;
}
Functions
Name | Description |
---|---|
easymeta_schema | Implements hook_schema(). |