MISP/app/Config/Schema/sessions.php

47 lines
1.3 KiB
PHP
Raw Normal View History

2011-11-26 10:45:31 +01:00
<?php
/**
* This is Sessions Schema file
*
* Use it to configure database for Sessions
*
* PHP 5
2011-11-26 10:45:31 +01:00
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
2011-11-26 10:45:31 +01:00
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
2011-11-26 10:45:31 +01:00
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config.Schema
2011-11-26 10:45:31 +01:00
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
2011-11-26 10:45:31 +01:00
/*
*
* Using the Schema command line utility
* cake schema run create Sessions
*
*/
class SessionsSchema extends CakeSchema {
public $name = 'Sessions';
2011-11-26 10:45:31 +01:00
public function before($event = array()) {
2011-11-26 10:45:31 +01:00
return true;
}
public function after($event = array()) {
2011-11-26 10:45:31 +01:00
}
public $cake_sessions = array(
'id' => array('type' => 'string', 'null' => false, 'key' => 'primary'),
'data' => array('type' => 'text', 'null' => true, 'default' => null),
'expires' => array('type' => 'integer', 'null' => true, 'default' => null),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
2011-11-26 10:45:31 +01:00
}