piecemaker.install 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * @file Install, Update, and Uninstall hooks
  4. */
  5. /**
  6. * Implements hook_schema
  7. */
  8. function piecemaker_schema() {
  9. $schema['piecemaker_profiles'] = array(
  10. 'description' => 'Piecemaker Profiles',
  11. 'fields' => array(
  12. 'pid' => array(
  13. 'type' => 'serial',
  14. 'unsigned' => TRUE,
  15. 'not null' => TRUE,
  16. 'description' => 'Profile ID',
  17. ),
  18. 'title' => array(
  19. 'type' => 'varchar',
  20. 'length' => 255,
  21. 'not null' => TRUE,
  22. 'default' => '0',
  23. ),
  24. 'settings' => array(
  25. 'type' => 'text',
  26. 'not null' => FALSE,
  27. 'size' => 'big',
  28. 'serialize' => TRUE,
  29. ),
  30. 'transitions' => array(
  31. 'type' => 'text',
  32. 'not null' => FALSE,
  33. 'size' => 'big',
  34. 'serialize' => TRUE,
  35. ),
  36. 'flash_settings' => array(
  37. 'type' => 'text',
  38. 'not null' => FALSE,
  39. 'size' => 'big',
  40. 'serialize' => TRUE,
  41. ),
  42. ),
  43. 'primary key' => array('pid'),
  44. );
  45. return $schema;
  46. }