You are here

function tinymce_schema in TinyMCE 6.2

Same name and namespace in other branches
  1. 6 tinymce.install \tinymce_schema()

Implementation of hook_schema().

File

./tinymce.install, line 41

Code

function tinymce_schema() {
  $schema['tinymce_settings'] = array(
    'description' => t('-'),
    'fields' => array(
      'name' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
        'description' => t("-"),
      ),
      'settings' => array(
        'type' => 'text',
        'size' => 'normal',
        'description' => t('-'),
      ),
    ),
    'primary key' => array(
      'name',
    ),
  );
  $schema['tinymce_role'] = array(
    'description' => t('-'),
    'fields' => array(
      'name' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
        'description' => t("-"),
      ),
      'rid' => array(
        'type' => 'int',
        'size' => 'tiny',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
        'description' => t('-'),
      ),
    ),
    'primary key' => array(
      'name',
      'rid',
    ),
  );
  return $schema;
}