PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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