Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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