Base for a static organization website

sessions.php 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * This is Sessions Schema file
  4. *
  5. * Use it to configure database for Sessions
  6. *
  7. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  8. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  9. *
  10. * Licensed under The MIT License
  11. * For full copyright and license information, please see the LICENSE.txt
  12. * Redistributions of files must retain the above copyright notice.
  13. *
  14. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  15. * @link http://cakephp.org CakePHP(tm) Project
  16. * @package app.Config.Schema
  17. * @since CakePHP(tm) v 0.2.9
  18. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  19. */
  20. /**
  21. * Using the Schema command line utility
  22. * cake schema run create Sessions
  23. */
  24. class SessionsSchema extends CakeSchema {
  25. /**
  26. * Name property
  27. *
  28. * @var string
  29. */
  30. public $name = 'Sessions';
  31. /**
  32. * Before callback.
  33. *
  34. * @param array $event Schema object properties
  35. * @return bool Should process continue
  36. */
  37. public function before($event = array()) {
  38. return true;
  39. }
  40. /**
  41. * After callback.
  42. *
  43. * @param array $event Schema object properties
  44. * @return void
  45. */
  46. public function after($event = array()) {
  47. }
  48. /**
  49. * The cake_sessions table definition
  50. *
  51. * @var array
  52. */
  53. public $cake_sessions = array(
  54. 'id' => array('type' => 'string', 'null' => false, 'key' => 'primary'),
  55. 'data' => array('type' => 'text', 'null' => true, 'default' => null),
  56. 'expires' => array('type' => 'integer', 'null' => true, 'default' => null),
  57. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
  58. );
  59. }