function hosting_platform_schema in Hosting 6.2
Same name and namespace in other branches
- 7.4 platform/hosting_platform.install \hosting_platform_schema()
- 7.3 platform/hosting_platform.install \hosting_platform_schema()
Implementation of hook_schema().
File
- platform/
hosting_platform.install, line 10 - Install, update and uninstall for the Platforms module.
Code
function hosting_platform_schema() {
$schema['hosting_platform'] = array(
'fields' => array(
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'publish_path' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
'makefile' => array(
'type' => 'text',
'size' => 'big',
'not null' => FALSE,
),
'web_server' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'verified' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
),
'status' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
'make_working_copy' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'vid',
),
);
return $schema;
}