You are here

function node_convert_schema in Node Convert 6

Same name and namespace in other branches
  1. 7 node_convert.install \node_convert_schema()

@file The node_convert install file.

Installs necesarry tables for correct node_convert functionality

File

./node_convert.install, line 10
The node_convert install file.

Code

function node_convert_schema() {
  $schema['node_convert_templates'] = array(
    'fields' => array(
      'nctid' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
      ),
      'name' => array(
        'type' => 'text',
        'size' => 'small',
      ),
      'source_type' => array(
        'type' => 'text',
        'size' => 'small',
        'not null' => FALSE,
      ),
      'destination_type' => array(
        'type' => 'text',
        'size' => 'small',
        'not null' => TRUE,
      ),
      'data' => array(
        'type' => 'text',
        'size' => 'medium',
      ),
    ),
    'primary key' => array(
      'nctid',
    ),
  );
  return $schema;
}