/app/Config/Schema/sessions.php

https://github.com/decapattack/fishbox · PHP · 45 lines · 15 code · 6 blank · 24 comment · 0 complexity · 4986c84c1e5eb9ad81faae98edcb9504 MD5 · raw file

  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. *
  22. * Using the Schema command line utility
  23. * cake schema run create Sessions
  24. *
  25. */
  26. class SessionsSchema extends CakeSchema {
  27. public $name = 'Sessions';
  28. public function before($event = array()) {
  29. return true;
  30. }
  31. public function after($event = array()) {
  32. }
  33. public $cake_sessions = array(
  34. 'id' => array('type' => 'string', 'null' => false, 'key' => 'primary'),
  35. 'data' => array('type' => 'text', 'null' => true, 'default' => null),
  36. 'expires' => array('type' => 'integer', 'null' => true, 'default' => null),
  37. 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
  38. );
  39. }