sessions.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * This is Sessions Schema file
  4. *
  5. * Use it to configure database for Sessions
  6. *
  7. * PHP 5
  8. *
  9. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  10. * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  11. *
  12. * Licensed under The MIT License
  13. * Redistributions of files must retain the above copyright notice.
  14. *
  15. * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
  16. * @link http://cakephp.org CakePHP(tm) Project
  17. * @package app.Config.Schema
  18. * @since CakePHP(tm) v 0.2.9
  19. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  20. */
  21. /*
  22. *
  23. * Using the Schema command line utility
  24. * cake schema run create Sessions
  25. *
  26. */
  27. class SessionsSchema extends CakeSchema {
  28. public $name = 'Sessions';
  29. public function before($event = array()) {
  30. return true;
  31. }
  32. public function after($event = array()) {
  33. }
  34. public $cake_sessions = array(
  35. 'id' => array('type' => 'string', 'null' => false, 'key' => 'primary'),
  36. 'data' => array('type' => 'text', 'null' => true, 'default' => null),
  37. 'expires' => array('type' => 'integer', 'null' => true, 'default' => null),
  38. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
  39. );
  40. }