Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
16591 anikendra 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
 */
27
class SessionsSchema extends CakeSchema {
28
 
29
	public $name = 'Sessions';
30
 
31
/**
32
 * Before callback.
33
 *
34
 * @param array $event Schema object properties
35
 * @return bool Should process continue
36
 */
37
	public function before($event = array()) {
38
		return true;
39
	}
40
 
41
/**
42
 * After callback.
43
 *
44
 * @param array $event Schema object properties
45
 * @return void
46
 */
47
	public function after($event = array()) {
48
	}
49
 
50
	public $cake_sessions = array(
51
		'id' => array('type' => 'string', 'null' => false, 'key' => 'primary'),
52
		'data' => array('type' => 'text', 'null' => true, 'default' => null),
53
		'expires' => array('type' => 'integer', 'null' => true, 'default' => null),
54
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
55
	);
56
 
57
}