'description'=>t('Stores the general data for a view.'),
'fields'=>array(
'vid'=>array(
'type'=>'serial',
'unsigned'=>TRUE,
'not null'=>TRUE,
'description'=>t('The view ID of the field, defined by the database.'),
'no export'=>TRUE,
),
'name'=>array(
'type'=>'varchar',
'length'=>'32',
'default'=>'',
'not null'=>TRUE,
'description'=>t('The unique name of the view. This is the primary field views are loaded from, and is used so that views may be internal and not necessarily in the database. May only be alphanumeric characters plus underscores.'),
),
'description'=>array(
'type'=>'varchar',
'length'=>'255',
'default'=>'',
'description'=>t('A description of the view for the admin interface.'),
),
'view_php'=>array(
'type'=>'blob',
'default'=>'',
'description'=>t('A chunk of PHP code that can be used to provide modifications to the view prior to building.'),
),
'base_table'=>array(
'type'=>'varchar',
'length'=>'32',
'default'=>'',
'not null'=>TRUE,
'description'=>t('What table this view is based on, such as node, user, comment, or term.'),
),
'is_cacheable'=>array(
'type'=>'int',
'default'=>0,
'size'=>'tiny',
'description'=>t('A boolean to indicate whether or not this view may have its query cached.'),
),
),
'primary key'=>array('vid'),
'unique key'=>array('name'=>array('name')),
);
$schema['views_display']=array(
'description'=>t('Stores information about each display attached to a view.'),
'fields'=>array(
'vid'=>array(
'type'=>'int',
'unsigned'=>TRUE,
'not null'=>TRUE,
'default'=>0,
'description'=>t('The view this display is attached to.'),
'no export'=>TRUE,
),
'display_plugin'=>array(
'type'=>'varchar',
'length'=>'64',
'default'=>'',
'not null'=>TRUE,
'description'=>t('The type of the display. Usually page, block or embed, but is pluggable so may be other things.'),
),
'id'=>array(
'type'=>'varchar',
'length'=>'64',
'default'=>'',
'not null'=>TRUE,
'description'=>t('An identifier for this display; usually generated from the display_plugin, so should be something like page or page_1 or block_2, etc.'),
),
'access'=>array(
'type'=>'varchar',
'length'=>255,
'description'=>t('A serialized array describing who can access this display of the view.'),
'serialize'=>TRUE,
'serialized default'=>'a:0:{}',
),
'style_plugin'=>array(
'type'=>'varchar',
'length'=>'64',
'default'=>'',
'not null'=>TRUE,
'description'=>t('The output type of the display. Usually list, table, teasers or nodes, but is pluggable so may be other things.'),
),
'title'=>array(
'type'=>'varchar',
'length'=>'255',
'default'=>'',
'not null'=>TRUE,
'description'=>t('The title to use for this display.'),
),
'header'=>array(
'type'=>'blob',
'description'=>t('Text to display for the header.'),
),
'header_format'=>array(
'type'=>'int',
'default'=>FILTER_FORMAT_DEFAULT,
'description'=>t('The output format for the header.'),
),
'header_hide_empty'=>array(
'type'=>'int',
'default'=>1,
'size'=>'tiny',
'description'=>t('If true, hide the header when the view has no records to display.'),
),
'footer'=>array(
'type'=>'blob',
'description'=>t('Text to display for the footer.'),
),
'footer_format'=>array(
'type'=>'int',
'default'=>FILTER_FORMAT_DEFAULT,
'description'=>t('The output format for the footer.'),
),
'footer_hide_empty'=>array(
'type'=>'int',
'default'=>1,
'size'=>'tiny',
'description'=>t('If true, hide the footer when the view has no records to display.'),
),
'empty'=>array(
'type'=>'blob',
'description'=>t('Text to display if the view produces no records.'),
),
'empty_format'=>array(
'type'=>'int',
'default'=>FILTER_FORMAT_DEFAULT,
'description'=>t('The output format for the empty text.'),
),
'use_pager'=>array(
'type'=>'int',
'default'=>1,
'size'=>'tiny',
'description'=>t('If true, this display will utilize the pager.'),
),
'url'=>array(
'type'=>'varchar',
'length'=>'255',
'description'=>t('The URL of the display, if applicable.'),
),
'block'=>array(
'type'=>'int',
'size'=>'tiny',
'default'=>0,
'description'=>t('True if the display responds to hook_block; false otherwise.'),
),
'position'=>array(
'type'=>'int',
'default'=>0,
'description'=>t('The order in which this display is loaded.'),
),
'display_options'=>array(
'type'=>'blob',
'description'=>t('A serialized array of options for this display; it contains options that are generally only pertinent to that display plugin type.'),
'serialize'=>TRUE,
'serialized default'=>'a:0:{}',
),
'style_options'=>array(
'type'=>'blob',
'description'=>t('A serialized array of options for this display\'s style plugin; it contains options that are generally only pertinent to that type.'),
'serialize'=>TRUE,
'serialized default'=>'a:0:{}',
),
'filter_options'=>array(
'type'=>'blob',
'description'=>t('A serialized array of options for this display\'s exposed filters.'),
'serialize'=>TRUE,
'serialized default'=>'a:0:{}',
),
),
'indexes'=>array('vid'=>array('vid','position')),
);
$schema['views_argument']=array(
'description'=>t('Stores information about each argument attached to a view.'),
'fields'=>array(
'vid'=>array(
'type'=>'int',
'unsigned'=>TRUE,
'not null'=>TRUE,
'default'=>0,
'description'=>t('The view this display is attached to.'),
'no export'=>TRUE,
),
'position'=>array(
'type'=>'int',
'default'=>0,
'description'=>t('The order in which this information is loaded.'),
),
'tablename'=>array(
'type'=>'varchar',
'length'=>'255',
'description'=>t('The name of the table this field is attached to.'),