pictcode / app / Config / Schema / sessions.php @ 410c42e5
履歴 | 表示 | アノテート | ダウンロード (1.608 KB)
| 1 | 635eef61 | spyder1211 | <?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 | class SessionsSchema extends CakeSchema { |
||
| 26 | |||
| 27 | /**
|
||
| 28 | * Name property
|
||
| 29 | *
|
||
| 30 | * @var string
|
||
| 31 | */
|
||
| 32 | public $name = 'Sessions'; |
||
| 33 | |||
| 34 | /**
|
||
| 35 | * Before callback.
|
||
| 36 | *
|
||
| 37 | * @param array $event Schema object properties
|
||
| 38 | * @return bool Should process continue
|
||
| 39 | */
|
||
| 40 | public function before($event = array()) { |
||
| 41 | return true; |
||
| 42 | } |
||
| 43 | |||
| 44 | /**
|
||
| 45 | * After callback.
|
||
| 46 | *
|
||
| 47 | * @param array $event Schema object properties
|
||
| 48 | * @return void
|
||
| 49 | */
|
||
| 50 | public function after($event = array()) { |
||
| 51 | } |
||
| 52 | |||
| 53 | /**
|
||
| 54 | * The cake_sessions table definition
|
||
| 55 | *
|
||
| 56 | * @var array
|
||
| 57 | */
|
||
| 58 | public $cake_sessions = array( |
||
| 59 | 'id' => array('type' => 'string', 'null' => false, 'key' => 'primary'), |
||
| 60 | 'data' => array('type' => 'text', 'null' => true, 'default' => null), |
||
| 61 | 'expires' => array('type' => 'integer', 'null' => true, 'default' => null), |
||
| 62 | 'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)) |
||
| 63 | ); |
||
| 64 | |||
| 65 | } |