47 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
<?php
 | 
						|
/**
 | 
						|
 * @file Install, Update, and Uninstall hooks
 | 
						|
 */
 | 
						|
 | 
						|
/**
 | 
						|
 * Implements hook_schema
 | 
						|
 */
 | 
						|
function piecemaker_schema() {
 | 
						|
  $schema['piecemaker_profiles'] = array(
 | 
						|
  'description' => 'Piecemaker Profiles',
 | 
						|
    'fields' => array(
 | 
						|
      'pid' => array(
 | 
						|
        'type' => 'serial',
 | 
						|
        'unsigned' => TRUE,
 | 
						|
        'not null' => TRUE,
 | 
						|
        'description' => 'Profile ID',
 | 
						|
      ),
 | 
						|
      'title' => array(
 | 
						|
        'type' => 'varchar',
 | 
						|
        'length' => 255,
 | 
						|
        'not null' => TRUE,
 | 
						|
        'default' => '0',
 | 
						|
      ),
 | 
						|
      'settings' => array(
 | 
						|
        'type' => 'text',
 | 
						|
        'not null' => FALSE,
 | 
						|
        'size' => 'big',
 | 
						|
        'serialize' => TRUE,
 | 
						|
      ),
 | 
						|
      'transitions' => array(
 | 
						|
        'type' => 'text',
 | 
						|
        'not null' => FALSE,
 | 
						|
        'size' => 'big',
 | 
						|
        'serialize' => TRUE,
 | 
						|
      ),
 | 
						|
      'flash_settings' => array(
 | 
						|
        'type' => 'text',
 | 
						|
        'not null' => FALSE,
 | 
						|
        'size' => 'big',
 | 
						|
        'serialize' => TRUE,
 | 
						|
      ),
 | 
						|
    ),
 | 
						|
    'primary key' => array('pid'),
 | 
						|
  );
 | 
						|
  return $schema;
 | 
						|
} |