sessions.php 1.3 KB

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