Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15403 manish.sha 1
<?php
2
/**
3
 * This is Sessions Schema file
4
 *
5
 * Use it to configure database for Sessions
6
 *
7
 * @link          http://cakephp.org CakePHP(tm) Project
8
 * @package       app.Config.Schema
9
 * @since         CakePHP(tm) v 0.2.9
10
 */
11
 
12
/**
13
 * Using the Schema command line utility
14
 * cake schema run create Sessions
15
 *
16
 */
17
class SessionsSchema extends CakeSchema {
18
 
19
/**
20
 * Name property
21
 *
22
 * @var string
23
 */
24
	public $name = 'Sessions';
25
 
26
/**
27
 * Before event.
28
 *
29
 * @param array $event The event data.
30
 * @return bool Success
31
 */
32
	public function before($event = array()) {
33
		return true;
34
	}
35
 
36
/**
37
 * After event.
38
 *
39
 * @param array $event The event data.
40
 * @return void
41
 */
42
	public function after($event = array()) {
43
	}
44
 
45
/**
46
 * cake_sessions table definition
47
 *
48
 * @var array
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
}